![]() |
vB4 SuperCharged - Optimises CSS, Javascript and HTML
1 Attachment(s)
This is designed for vBulletin 4.0.x only.
DO NOT INSTALL on vB 4.1.x or 4.2.x. Even if it worked correctly, the effect is negligible as vB4 is nowhere near as terrible client-side speed-wise as it once was. DO NOT ask for fixes, they will not come, I have moved to XenForo. __________________________________________________ ______________ tl;dr - Significant frontend speed improvements for vBulletin 4 Don't forget to Mark as Installed if you use this mod, and a nomination for MOTM would be nice :) __________________________________________________ ______________ Features: CSS Optimiser: Minifies all CSS files and serves CSS directly, eliminating the PHP overhead from css.php. Javascript Optimiser: Intelligently defers Javascript loading (puts script tags just before </body> on the fly) and combines common Javascript files. Also features optional compression with Google Closure Compiler. HTML Optimiser: Based on HELLCAT's Realtime Page Compressor, and adds complete whitespace removal around block and meta elements and removal of unimportant comments. Attachment Optimiser: Intended for FastCGI users only - serves attachment thumbnails and images directly rather than through PHP. All this is done efficiently and on-the-fly - no need for any template edits. __________________________________________________ ______________ Installation:
Conflicts:
Upgrading:
Changelog: 1.51:
ONLY if you wish to use the Attachment Optimiser, something similar to this is needed in your server config (nginx): Code:
location /customattachments { |
I like anything with "optimizer" in the title :)
|
thanks
|
I'll be installing this when vb4 goes gold :)
|
While this does eliminate the execution of the php code which generates the correct stylesheet sets, I can't see how this improves the user experience. The number of individual http requests is greatly expanded. This goes against a rule of thumb for web design "best practices".
|
Say you've got 3 FastCGI processes and 5 stylesheets included via css.php. Assuming none of those FastCGI processes are busy handling requests, it will take theoretically as much as twice as long for anything to render, and from a load perspective, one user will become six (not counting cache)
I'll be adding concatenation shortly for both CSS and Javascript soon :) |
does this work for vb 3.7?
|
It's already designed to concatenate the css. I know you'll stop using the FastCGI, but big deal - studies show the bigger problem for the user is the latency involved with multiple HTTP requests. I can only see this as "optimzation" if your server sucks and you care more about the server load stats than the latency of the user experience. Besides, since the css is essentially static, set your "expires" header properly on css output and a pageload will only hit the server once with the original code.
|
Hugely improved version coming in a few hours :D
Also, multiple http requests = bad, multiple http requests where at least one can't complete until the others do = worse. It's not the server I'm concerned about ;) |
Annnnd... done :)
Feels good to have pages loading in a fraction of a second and being immediately responsive :D And ~2 second loads from an unprimed cache. |
Sounds very interesting, I'll try it later
Thanks |
Makes me wonder why vBulletin 4 doesn't has these features build in of what this plugin has to offer.
|
Should there be an xml/bitfield file in there somewhere?
I'm guessing that you didn't really intend for people to have to figure out to add ?c=css and c=.js to the end of vbsc.php. :) |
Quote:
Also I'll be releasing 0.3 shortly :) |
how long until 0.3 Darkimmortal?
|
0.3 released :)
|
I wonder if it works in Vb.3.8.x since it doesnt take any effect to file system rite? This mod looks very promising
|
The HTML and JS optimisers definitely would, CSS optimiser is a bit less likely to. But then again, CSS is used so little in 3.8 that it doesn't really matter.
Of course you'd need to update the Javascript file list to contain only the files used in 3.8. And not all of them - only the common ones. |
So this would work with vbulletin 3.8.x? Whats the difference in performance then vboptimizer?
|
Excellent job. Installed on www.harrypotterchat.org and the site doesn't feel so sluggish.
|
Hmm get one error. When compressing javascript
Code:
\ |
It seems to be eating my css and js - I'm left with an odd www.domain.com in the top of the header, (js-related, turning that off removes it) and it's doing some strange things to my header layout class (because turning off css fixes that).
Most likely it's my bad, but I can't debug it properly till tomorrow. :( |
Quote:
Quote:
Quote:
|
My style doesn't work after installing this product...
http://www.balancecommunity.com/forum/forum.php |
You have to run Compress CSS and Compress JS ;)
I'll add install code to do that automatically in 0.4. :) |
I did run Compress CSS and Compress JS but I still have the styling issues
|
Oh you run from /forum/, I never built it to handle that :P
http://www.balancecommunity.com/foru...00001/vbsc.css As you can see it's generated fine, but the URL is wrong. I'll be releasing 0.4 shortly with a fix :) |
Could it be that my issue's being caused by the adsense js getting affected?
http://www.nzboards.com is the site in question. The style with adsense in the advertising templates has the issues. |
Decent mod. I'll be waiting until it's more "friendly" with vB 4.0, though. :)
|
Quote:
Quote:
|
Quote:
|
I'm having the same problems as kall. Followed the 'Install' instructions to the T.
|
0.4 will be released tomorrow - RC2 broke a lot of stuff.
|
Just as a mention: my original comments were based off of the 0.1 version. Since I did not examine the code but was going off of an example of what this mod does which darkimortal originally had in the OP, I suspect he had inadvertenly reversed his example which he later removed. It's a moot point now. However, I did want to make it clear that, when this mod is complete, it intends to make the optimizations which are considered best practice for external css and js handling.
|
Quote:
And @all - don't forget to add popuplist.css to your CSS Files list, or uninstall the product before upgrading. |
It sure did fix the adsense issue. :D
When I enable css compression though, I still get the weird http://www.nzboards.com/ in the top of the header. :S |
Umm. Where's this new .css supposed to be found? I can't see any templates in the product xml..
|
No I mean vBulletin RC2 added it on pretty much every page so it's worth compressing in the cache:
https://vborg.vbsupport.ru/external/2009/12/35.png Also now that I've seen where that nzboards in the header is in the code, would you mind turning CSS compression off so I can see what's causing it? |
Ohh. Silly me. :)
Yup, if you mean 'Enable CSS Optimiser' = No, done. |
this messed up my whole site. I have RC2
|
All times are GMT. The time now is 12:45 PM. |
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:
|