The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to remove render-blocking javascript and optimize css in above the fold content?
Google's Page Speed Insights tells me the following:
Quote:
I suppose a similar result would come for any vBulletin 4 site. Has anyone figured out how to: A) defer or async the javascript so that it is no longer render blocking without breaking functionality B) Inline and/or combine the mentioned CSS so that it is faster Would appreciate some pointers. |
#2
|
|||
|
|||
A) According to this, you need to add the async attribute to all script tag references. I'm not sure if that will work though.
B) You could merge a bunch of CSS templates together in vBulletin, but this may result in issues when a certain template doesn't load certain CSS templates. You other options are: - Use something such as Cloudflare or Incapsula to optimize your site. - Minify your CSS templates, be sure to keep a copy of the normal beautified version of your CSS templates. |
#3
|
||||
|
||||
Quote:
To the OP: I don't use or recommend Google PageSpeed. Try http://webpagetest.org instead. |
#4
|
|||
|
|||
Quote:
When I disable Cloudflare on my forum it loads slower than when it's enabled. If OP wants another tip, optimize all of your images with https://kraken.io/web-interface (choose lossless unless you don't mind losing a bit of quality) |
#5
|
||||
|
||||
Quote:
Go to webpagetest dot org and run the tests both ways to see what I mean. Quote:
Meanwhile, again to the OP - At Ozzmodz we have a vBulletin optimization forum with actual case histories and actual results, how-to, and tips. Here. |
#6
|
||||
|
||||
Quote:
|
2 благодарности(ей) от: | ||
CAG CheechDogg, Max Taxable |
#7
|
||||
|
||||
By the way, also to the OP - you have a flash object that is 14.5 percent of your pageload. If ever there was something that would interrupt, slow down or block render, it's a flash object. Especially a big one.
Just FYI. |
#8
|
|||
|
|||
Quote:
Besides that I also use Cloudflare to prevent DDoS attacks (instead of buying an expensive server with DDoS protection), gaming forums are target for such attacks all the time. I used to receive attacks weekly but since I enabled Cloudflare, 2 years ago, I haven't received a single attack. Quote:
@OP: if you want to optimize some more, you could consider using memcached for vBulletin, using MariaDB instead of MySQL and nginx instead of Apache. |
#9
|
||||
|
||||
Quote:
CF DOES increase first byte time, DOES delay the "handshake." All CDNs do. The CF people even admit it now after denying it, deflecting, making excuses and naysaying for over two years. It's the nature of the beast. Quote:
I don't recommend CF or any other CDN as a broad brush, fix it quick, one size fits all solution. The OP is a good example - he's only delivering 540kb to browsers, he doesn't need a CDN. He needs actual optimization help. And at that, he really doesn't need much of it. His main issue is leveraging browser cache of static assets and that's a very simple thing to do with vBulletin on Linux. I'm not trying to knock you Dave. You believe what you believe for the reasons you believe them and I respect that. But I've fixed dozens of really ill, truly sick, vB installations over the last few years and not one of them needed a CDN to do it. It's the last thing I consider when trying to help with actual problems for folks. Fix the basic stuff first. |
#10
|
||||
|
||||
I mean, look at this test on the site in your signature which I assume is yours. You are failing both first byte AND leverage browser cache of static assets - and this is WITH the CDN active.
http://www.webpagetest.org/result/150113_NR_ZKE/ Turn off the CDN, and run this exact test again with the exact browser and location parameters you see there, and I guarantee your first byte time improves. It's not subjective - this is a real world test with a real browser and a real internet connection. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|