The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Page Output Compression - Whitespace stripper. Details »» | |||||||||||||||||||||||||||
Page Output Compression - Whitespace stripper.
Developer Last Online: Jul 2012
No longer supported by the author.
Show Your Support
|
Comments |
#62
|
||||
|
||||
So if we use the lite version regular code that is edited during adding a new hack won't be affected and look different?
Is there a big difference between the lite and extreme versions as far as page loading speed is concerned? Say, if I was interested in the fastest speed, maybe install all the hacks I ever wanted installed on my board and then as the very last hack run the extreme version of this that "compresses" all the code together, so the code looked like sheet, but at least they loaded fast? |
#63
|
|||
|
|||
No difference to any hacks... all hacks will run prior to this (except microstats), and it is the final HTML for the whole page that has whitespace stripped.
I couldn't see a difference between the old lite and extreme versions on page rendering... I suspect it's just too small to be noticeable. The only difference between those two versions is how much whitespace is left in the page... you are fine to use the lite one without anything messing up, but some of us like being a little too anal and stripping as much as we safely can even when the difference is arguable... "if it doesn't cost anything, then do it" is my philosophy. Yup, that last line describes what it does. But I've only this evening updated the hack (see the first post)... so there isn't a seperation between lite and extreme. It runs the and the extreme stuff where it can, and the lite stuff everywhere else. |
#64
|
||||
|
||||
I've installed this and it seems to work well. Good idea.
|
#65
|
||||
|
||||
^ ^ ^ The ultimate test
|
#66
|
||||
|
||||
I had this modification enhanced. Because I work on calendar
Code:
// ###################### Page Output Compression ####################### $thisscriptis = array( 'editpost', 'register', 'newreply', 'newthread', 'sendmessage', 'calendar', 'faq', 'profile', 'private', ); if (!in_array(THIS_SCRIPT, $thisscriptis)) { $patterns = array('/\>\s+\</', '/^\s*/m'); $replace = array('> <', ''); $vartext = preg_replace($patterns, $replace, $vartext); } else { $vartext = preg_replace('/\>\s+\</', '> <', $vartext); } // ###################### Page Output Compression ####################### |
#67
|
||||
|
||||
Works for me!
I turned gzip to 1, applied this hack, and my forums are loading so fast I cant believe it. |
#68
|
|||
|
|||
*installed* Simple installation and great results.
I already had VB3 MicroStats installed so I added the code BEFORE: $pageendtime = microtime(); Results: Code:
Page generated in 0.13810205 with hack 0.32 : 0.24 : 0.19 index.php Page generated in 0.13857198 without hack 0.15 : 0.29 : 0.23 Page generated in 0.23258996 with hack 0.23 : 0.23 : 0.18 England forumdisplay Page generated in 0.23134303 without hack 0.55 : 0.31 : 0.22 Page generated in 0.45348811 with hack 0.08 : 0.19 : 0.17 showthread - The 1981 Ashes series revisited Page generated in 0.45551610 without hack 0.53 : 0.37 : 0.25 I have a broadband connection and the increased download speed is only marginally apparent. According to Speedar my connection speed is approx. 104.2 kilobytes/sec. I also did a gzip test which produced the following result for my homepage: The webpage is COMPRESSED / GZIPPED! >> Savings: 80% Filesize: 55.6KB [11.2KB] html / text only |
#69
|
|||
|
|||
Sorry, I had to uninstall this because I need to use Code tags occasionally to display tables properly and this hack causes tables to display incorrectly. Pity a solution can't be found for this otherwise it is a great hack.
Is there a version that doesn't alter the spaces within Code, PHP and Pre tags? |
#70
|
|||
|
|||
Quote:
It could theorhetically be done, but the additional overhead in doing so would hurt you in performance. I'd need to regexp for <pre> and </pre>, chop those out, perform the strip, and put those backin... string concats and chops of that size is far more intensive than simply the current regexp for the strip. Would people really want a solution that was heavier on the processing? |
#71
|
|||
|
|||
Hi buro9, I can live without the pre tags but I do need to use the code tags to display tables properly. Is that possible? Or does the code tags present the same problems as the pre tags?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|