The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
RealTime Template Compressor: Reduces page sizes, loads pages faster, saves Bandwidth Details »» | |||||||||||||||||||||||||||
RealTime Template Compressor: Reduces page sizes, loads pages faster, saves Bandwidth
Developer Last Online: Nov 2023
As you know all vbulletin pages consists of templates and templates consists of HTML (+sometimes javascript) tags.
Nearly in all sites and HTML pages, HTML tags are written in a readable format so that developer can read the source code easily. VB templates abide by this rule too. However when this "nicely readable" code is called by a visitor, page size unnecessarily increases because of the redundant "spaces" and "line breaks" in the source code which have no useful purpose regarding the page output but is there just for making the source code more readable to the developer. This hack removes these unnecessary spaces and line breaks from your vbulletin templates AT THE MOMENT they are displayed (in realtime). It does NOT touch your original source code so it is still readable to you when you want to edit it in your admin CP. But it compress the output when they are sent to user's browser. Removal of these unnecessary characters makes sure: a) Page output shrinks in all vb pages b) Thus page loads faster by all visitors c) You save bandwidth. Since the removed characters are unnecessary characters, display of your page does NOT change. Please see FAQ below for more info. This hack is 100% compatible with Teck's Microstat Hack and my Advanced Templates: Dynamic Templates Changing according to different conditions hack and WebTemplates 2.x: VB Integrated Content Management System . It is a very easy to install add (just a few lines in 1 step) yet effective. I appreciate if you can click INSTALL button, if you use the hack. Thank you. :glasses: Show Your Support
|
Comments |
#42
|
||||
|
||||
Logician, I have to say it again - this is such a great idea! Absolutely minimal server overhead for a huge bandwidth saving! I use And such a simple concept, easily implemented, yet no one else thought of it. Pure genius.
|
#43
|
||||
|
||||
Quote:
|
#44
|
||||
|
||||
Quote:
Actually, this will just work for EVERY page that you output using vBulletin's doooutput function. That doesn't limit one to Webtemplates at all, most of my entire site is done using vB's dooutput function (and all of KFN 6 will be done using vB3's print_output() function), and as such this hack will apply to all those pages. works fine in vB3 as well btw, I just placed the code (with tiny changes) in vB3's print_output function in the proper place, works like a charm. Dunno yet if I'm gonna keep it though, unformatted source code might be 'more difficult for people to rip', but usually people don't rip sourcecode, they learn from sourcecode. Lack of proper indenting also looks unprofessional... |
#45
|
||||
|
||||
One side effect - this hack does remove spaces in between images in the output as well. No big deal, but the buttons in the postbit are cramped next to each other.
|
#46
|
||||
|
||||
Quote:
PHP Code:
Quote:
|
#47
|
|||
|
|||
i noticed the buttons where all together and thought it was me
ok will fix with command above cheers |
#48
|
|||
|
|||
This is great, I use to use this sort of thing to compress my html pages.
|
#49
|
||||
|
||||
Excellent, though there seemed to be thousands of instances spanning thirteen styles/skins where I would need to replace relevant spaces with & nbsp;. So I decided to replay the backup functions file.
|
#50
|
||||
|
||||
Logician, this is a great hack. However, i will not use it because i am too picky and html must look readable
i know there are many people that like to view the page source, i myself do. its just a habit by most coders to look at the page source. you also have to note that 1byte is extremely small, 1,000 bytes is just about 1KB. there really isn't much you'll be saving, as even a user on 56k would probably not even noticed a difference in 5,000 bytes. you might save a dollar or two by doing this, but a lot of page source viewers are gonna be like "what a crappy coder" lol seriously though, good thought. i am trying to focus my time in reducing vbulletin queries. that is what kills me. |
#51
|
||||
|
||||
Quote:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|