The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
HELLCAT's Realtime Page Compressor Details »» | |||||||||||||||||||||||||
This is my version of a realtime page compressor.
The idea is based on ShiningArcanine's port of the "Realtime Template Compressor", that is also based on the original concept by Logician, and can be found in this thread: https://vborg.vbsupport.ru/showthread.php?t=83248 But since my version doesn't contain any of his original code anymore (even the regular expressions have been rewritten) and I added a bunch of new features I finally decided to release this one as a speperate thing. Features:
What does this exately do? This plugin strips all unneccesary whitespace, linebreaks and HTML comments out of the final HTML code that vBulletin sends to the browser. This way the pages get a bit smaller (saving bandwidth) and the browser often renders the pages faster since there's no whitespace it must skip. Passages that are enclosed by <pre> and <textarea> tags are left untouched completely so text posted in [code], [php] and other bb-tags of that sort are not affected and kept like the user intended them to be. Passages enclosed in <script> tags are only striped from leading whitspace but not of linebreaks - this way JavaScript (and other) code will remain functional and does not get messed up. How to install Couldn't be more easy. If you have any other page/template complression tool installed -> uninstall it first. Then go to "AdminCP -> Product Manager -> Add/Import product" and import the .XML you downloaded here. Now go to the "vBulletin Options" in the AdminCP, under "Help Server Settings and Optimization Options" you will find the "Realtime Page Compressor Options" settings group. Open the settings, change them to what you want and hit "SAVE" (It's important that you SAVE the options even when you want to use the defaults! For vB to actually create theese settings in the DB they have to be saved at least once!!!) Done More details are in the README. Have fun! UPDATE 1.10 Not a day old and here comes the first update
Update 1.20
Update 1.21
Show Your Support
|
Comments |
#32
|
|||
|
|||
Quote:
Noted for the next update Quote:
What do you want to be able to turn ON/OFF? Making striping leading whitespace as option? Quote:
Shouldn't have any effect if the CSS are external.... Do you have comments with "[" in it? 'cause those are left allone now to asure AnyMedia will not screwed up. (I'm trying to do a better RegEx for that anyway....) |
#33
|
|||
|
|||
Quote:
|
#34
|
|||
|
|||
the css is posted when the headinclude variable is parsed which should be before this outputs?
|
#35
|
|||
|
|||
Quote:
The compressor kicks in when all parsing and HTML building is done, just before the actual output is send to the browser. I also put the CSS on my test system into external files -> no problem there. Still getting good results. (around ~13%). Quote:
@Lizard King By looking at the source of your pages it looks like they ARE propperly compressed. There's no whitespace, linebreaks or comments left that are supposed to go. Maybe only the DISPLAY is of.... Could that be caused by vbSEO??? With the 1.00 everthing was fine? It's getting more and more weird.... But I'm still on it! |
#36
|
|||
|
|||
Quote:
|
#37
|
|||
|
|||
Attached is the previous version:
|
#38
|
|||
|
|||
7-19%
excellent job |
#39
|
|||
|
|||
Great Job 7-17%
|
#40
|
|||
|
|||
Quote:
I think I found the reason for the slight drop.... During my last experiments I hit F5 a thousand times (OK, a few times less than 1000 ) and with the same page reloading (and no changes to the code in the meantime) the ratio went a bit down and up again. vB seems to put the one or the other linebreak or comment more into the page's source from time to time. So, nothin' to worry about a percent drop, it'll come back soon |
#41
|
|||
|
|||
Great, great, great!!!
Thanks a lot! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|