Unfortunately, this will also strip white space when editing posts. That's NOT good.
This is indeed true.
However the basic non-aggressive one will one strip excess space between ">" and "<".
Unless you have HTML in your posts this shouldn't matter.
Does this impact anything? Such as the WYSIWYG editor? I've been running it for a little while on my site and I haven't noticed any detrimental effects when editing posts.
If you can give a detailed example I'll have a look and see what can be done about it.
My site runs with a history of all edits (an edit log), so I can diff between changes to see how this effects it.
Essentially it strips all returns out of posts when editing. In general, it's not a big issue but for long posts it's a little tiresome to have to go insert returns again. I did have the more aggressive version installed. I'll try the lesser one and see if that helps a little.
Essentially it strips all returns out of posts when editing. In general, it's not a big issue but for long posts it's a little tiresome to have to go insert returns again. I did have the more aggressive version installed. I'll try the lesser one and see if that helps a little.
Quote:
Originally Posted by Paul M
The full version screws up nicely formatted posts when you edit them, so I have used the "lite" version which doesn't do this.
This hack have a good concept; but it is not the best way to preserve bandwidth...
For example; if your site is not webmaster oriented, your members will be unlikely to post as much HTML/other contents that needs trimming, thus it wouldn't affect your site as much. If your site is webmaster oriented, you will want to preserve the code the way it is (for demonstration and code representation purpose). The members will have a hard time trying to learn:
Code:
<?
if ( !$happy ) {
print $sad_string;
}
?>
if they don't know php and all they see is
Code:
<? if (!$happy){print $sad_string;}?>
And that's only a basic example, think what chaos it'd do with stuff like:
But bandwidth preservation wasn't the #1 priority... delivery to the rendering engine and reduction of work for the rendering engine was.
If you have a site that is going to use CODE tags, etc... then use the now defaulted 'lite' version.
For those of you who do not post code, etc in CODE tags, and care not for <pre> tags... then the aggressive version will suit your needs and save a few more spaces.
And if you want to save bandwidth:
* Turn on GZIP
* Remove images where you consider them excess
* look at removing any redundent tags in the templates... you optimise the HTML
Etc.
Removing a few images will do more than this does... but this will help it display faster
for those having problems with the edit posts and new threads posts, PMS etc etc i have made this little addition that will switch to the light version if you view them pages (i think it works lol)