vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to remove render-blocking javascript and optimize css in above the fold content? (https://vborg.vbsupport.ru/showthread.php?t=316631)

asabet 01-13-2015 03:33 PM

Quote:

Originally Posted by Dave (Post 2532284)
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.

Those are the kinds of things I was thinking about, but I was hoping someone had gone down that road and could tell me exactly what to do.

Quote:

Originally Posted by Max Taxable (Post 2532289)
To the OP: I don't use or recommend Google PageSpeed. Try http://webpagetest.org instead.

I use both, and they both indicate that those JS and CSS are delaying page load.

Quote:

Originally Posted by Dave (Post 2532291)
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)

Cloudflare seemed to lower my Adsense revenue. I do need to optimize my images...

Quote:

Originally Posted by Max Taxable (Post 2532292)
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.

I've read there - lot's of good tips there that I have implemented. But I didn't see anything about inlining or combining vBulletin CSS or about defering/async for vBulletin scripts.

Quote:

Originally Posted by Max Taxable (Post 2532294)
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.

Must have been an ad. There's no flash in my website. The Google ads are asynchronous and thus don't delay page loading. The Amazon ads are not async, but they pay very well.

Max Taxable 01-13-2015 03:38 PM

Quote:

Originally Posted by asabet (Post 2532312)
I use both, and they both indicate that those JS and CSS are delaying page load.

There's no indication of that at all, here.

http://www.webpagetest.org/result/150113_Y3_W40/

There aren't any delays in your waterfall. Everything is loading nicely, uninterrupted.

The only real issue you have is cache of static content. Pretty sure you fix that, reading the article at OzzModz about speeding up your site via .htaccess and the one about speeding up your site via AdminCP.

Max Taxable 01-13-2015 03:41 PM

Quote:

Originally Posted by asabet (Post 2532312)
The Google ads are asynchronous and thus don't delay page loading.

This is a myth. They still add kb load to your page therefore, do take time to render. They're also from a third party - if there's a slow load from the 3rd party that means a slow load for you.

Part of the compromise to monetize, as they say. :D Nothing you can do there.

Max Taxable 01-13-2015 04:03 PM

Here's two of the flash objects, they're present in every test I run and take up about 77kb.

PHP Code:

URLhttp://ds.serving-sys.com/BurstingRes//Site-501/Type-2/21ca2a22-3446-40ed-a00d-e0f68b03fe79.swf
Hostds.serving-sys.com
IP
23.0.160.83
Location
Akamai
Error
/Status Code200
Client Port
59942
Start Offset
2.324 s
Time to First Byte
36 ms
Content Download
61 ms
Bytes In 
(downloaded): 39.2 KB
Bytes Out 
(uploaded): 0.5 KB 

PHP Code:

URLhttps://secure.img-cdn.mediaplex.com/0/12309/207334/159284_us_cs_li_fy15q4w01_oa_Workstations-Engineering_300x250_iip-.swf
Hostsecure.img-cdn.mediaplex.com
IP
23.203.54.26
Location
Akamai
Error
/Status Code200
Client Port
59950
Start Offset
3.010 s
Time to First Byte
46 ms
Content Download
35 ms
Bytes In 
(downloaded): 38.3 KB
Bytes Out 
(uploaded): 0.5 KB 


asabet 01-13-2015 04:11 PM

Quote:

Originally Posted by Max Taxable (Post 2532317)
Here's two of the flash objects, they're present in every test I run and take up about 77kb.

[PHP]URL: http://ds.serving-sys.com/BurstingRes//Site-501/Type-2/21ca2a22-3446-40ed-a00d-e0f68b03fe79.swf
Host: ds.serving-sys.com...

I don't know what those are - maybe in one of the posts featured on the front page?

But please, let's keep this on the OP topic - whether the JS and CSS that are native to vB 4 can be defered and/or optimized in such as way as to speed page load. For all other ways to speed page load, we can have another thread.

Max Taxable 01-13-2015 04:14 PM

Quote:

Originally Posted by asabet (Post 2532320)
But please, let's keep this on the OP topic - whether the JS and CSS that are native to vB 4 can be defered and/or optimized in such as way as to speed page load. For all other ways to speed page load, we can have another thread.

I've not seen you have these issues affecting pageload. Because they're not. But, you're convinced you need it. All I do is recommend what works for speed and optimization, every time it is tried. :D

I'll let others help chase the red herring now.

asabet 01-13-2015 04:32 PM

Thank you.

--------------- Added [DATE]1421187954[/DATE] at [TIME]1421187954[/TIME] ---------------

Quote:

Originally Posted by Max Taxable (Post 2532314)
There's no indication of that at all, here.

http://www.webpagetest.org/result/150113_Y3_W40/

There aren't any delays in your waterfall. Everything is loading nicely, uninterrupted.


How about this:

https://vborg.vbsupport.ru/external/2015/01/19.jpg

Max Taxable 01-13-2015 11:00 PM

Quote:

Originally Posted by asabet (Post 2532324)
How about this:

Answered over at Ozzy's place in same thread.

But for readers here, what you're seeing isn't interference with parallel downloads, and js files actually behave differently almost every time they're downloaded. Multiple tests - as I showed in the thread at Ozz, confirm this. Plus when you test with Chrome you don't get real-world results. I recommend IE 10 for all testing.


By the way your performance is much improved, congrats! A little common sense goes a long way.

http://www.webpagetest.org/result/150114_KK_3H2/

asabet 01-13-2015 11:28 PM

I think my graphic above speaks for itself unless someone can tell me why it only looks like lightbox.js is delaying onload.

Max Taxable 01-13-2015 11:40 PM

Quote:

Originally Posted by asabet (Post 2532369)
I think my graphic above speaks for itself unless someone can tell me why it only looks like lightbox.js is delaying onload.

You are visually complete when it is finished downloading. Try several tests, see the lightbox load differently each time.

Cherry picking one out of how many tests wastes whose time exactly? "Your graphic" does not represent what's really happening.

Your site is greatly faster now. As fast as any v4 out there. You should wait for someone else to come along and harpoon your js and css red herrings, I don't have time for non problems.


All times are GMT. The time now is 12:59 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
  • Page Generation 0.01509 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete