Back to vBulletin 3.5 Add-ons

HELLCAT's Realtime Page Compressor
Mod Version: 1.24, by Hellcat

This modification is in the archives.
vB Version: 3.5.3 Rating: (22 votes - 4.95 average) Installs: 422
Released: 26 Jan 2006 Last Update: 20 Feb 2006 Downloads: 790
Not Supported Uses Plugins Template Edits  

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:
Realtime Template Compressor: Reduces page sizes, loads pages faster, saves bandwidth

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:
  • Copmresses the final HTML output sent to the browser by ~10% to ~15%
    (see bellow for how this is achived)
  • Full controll via AdminCP options
    (you can turn it ON/OFF and choose if, and how the stats should be displayed - see screenshot)
  • Stats display can be fully customized via template edit
  • Areaes with intentional/wanted whitespace are left untouched
    (So this does not mess up user inputted text, text in [code] blocks and the such....)
  • JavaScript blocks are kept intact and functional

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
  • Added compatibility for the "Any Media BB Code"
    Before the Any Media BB Code was screwed up in IE when the compressor was active -> FIXED
  • Raised compresseion ratio another 1 to 3 percent
    "Code comments" (stuff between "/*" and "*/" - used in CSS and JS for example) are now striped as well.

Update 1.20
  • Added the option to show the stats display to admins only.
    Go to "AdminCP -> vBulletin Options -> Real Time Compressor Settings" and you will find the new option there.
  • Fixed the "uncached template" issue
  • Tweaked the RegEx' a bit more
    But they still need quite some optimization/tweaking

Update 1.21
  • Added HTML tag to exclude blocks from compression
    Put blocks of HTML source between <nocompress>Your Source</nocompress> tags to have it untouched by the page compression.

Download

This modification is archived and cannot be downloaded.

Screenshots

 

Similar Mods

Realtime Template Compressor: Reduces page sizes, loads pages faster, saves bandwidth vBulletin 3.5 Add-ons
RealTime Template Compressor: Reduces page sizes, loads pages faster, saves Bandwidth vBulletin 2.x Full Releases
Offline Template Compressor vBulletin 3.0 Beta Releases

vblts.ru supports vBulletin®, 2022-2024