![]() |
Page Output Compression - Whitespace stripper.
No longer supported by the author.
|
this have been done in another hack related to templates compression...
most of the time, it's not good to have such a feature because html is not written well, or is not xhtml relevent... |
Quote:
Quote:
As both HTML and XHTML renderers ignore white space the hack can't possibly do anything that the HTML or XHTML wasn't already doing. I've tested it on my forum and been sure to not upset anything anywhere... I only replace multiple white spaces with a single space... there is no chance a renderering engine will alter what it does because of this. If I didn't put back 1 white space for the many taken out, then I would agree that I might be affecting the page display or something... as someone might've relied on spacing. However, I leave a single space in there for that reason. Please show me how my hack does what you imply. |
I'm using 3.0.0, and I had to do something else, and still worked.
You see, I didn't find: PHP Code:
PHP Code:
PHP Code:
|
Quote:
I've just checked the default file from Jelsoft for vBulletin 3.0.3 and the code as I've pasted it is on line 1852. So it is there when shipped. You must've removed it at some point, maybe for another hack? Well... no worries. If it didn't have the if (DB_QUERIES) block then you would be best to place the hack code BEFORE the $pageendtime variable. Otherwise the stat you get telling you how long the page took to load will not reflect the inclusion of the hack, as the $pageendtime is literally the timestamp of the page as it finishes being generated. |
Hehe... I just noticed you said 3.0.0. Well, the hack version does say 3.0.3 ;)
It works anyway... just place the hack BEFORE the $pageendtime variable is set :) |
That won't work if someone uses the <pre> tag, which utilizes whitespace for formatting.
|
Quote:
However if you have a tech site in which you paste lots of HTML, etc... and you want to preserve space within that. Then you'd be best not using this hack at all ;) |
Simple and effective. Oh and anyone that has VB3 MicroStats hack installed will not be able to find
Code:
if (DB_QUERIES) Code:
if (DB_QUERIES) |
wow - this makes every page load much faster
thanks very much, great hack. |
All times are GMT. The time now is 02:02 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:
|