![]() |
Unfortunately, this will also strip white space when editing posts. That's NOT good.
|
Quote:
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. |
this lowered my homepage size by 3kb, it's a quick hack so worth the small effot :)
|
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:
Quote:
|
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:
<? Code:
<? if (!$happy){print $sad_string;}?> And that's only a basic example, think what chaos it'd do with stuff like: Code:
if (!$a):$b or die(print($c)) |
Oh absolutely.
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)
PHP Code:
i wrote that out really quick so sorry if its not coded proppa but you get the idea ;) |
I clicked Install !!!!!!!!!!!!! terrific! :laugh: :banana:
|
All times are GMT. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|