Current time: 12-10-2019, 12:06 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Elements Seem to Load Willy-Nilly Depending on Location
08-20-2014, 03:27 AM
Post: #1
Elements Seem to Load Willy-Nilly Depending on Location
Hello all,

I was wondering if someone could assist in interpreting some results. Depending upon the location selected for testing, the page's elements appear to be loading in an order in which they are not extant in the source. Of particular interest is the footer .js file, sometimes loaded at the top, sometimes loaded where it should be loaded.

http://www.webpagetest.org/video/compare...b1ac6823ee

Many thanks,
AJ

Make your WordPress website or blog not just faster & not merely fast, but one of the fastest sites in the ENTIRE WORLD.

Performance. Speed. Get Some. WpFASTER!
Find all posts by this user
Quote this message in a reply
08-26-2014, 06:00 AM
Post: #2
RE: Elements Seem to Load Willy-Nilly Depending on Location
You're seeing the results of the preload scanner. As it is currently (in Chrome) it treats all scripts as high priority, regardless of where it finds it in the document : https://code.google.com/p/chromium/issue...?id=317785

I literally just set a patch for review today to hopefully improve things: https://codereview.chromium.org/457413002/

All of the browsers (post-IE 7) have a fair bit of leeway on the order that they choose to download resources to try and get the page to be interactive and render as soon as possible so you will see things behave differently depending on what browser you test with (and even with the same browser depending on the timing and sequence of events).

There's ongoing work to let site owners provide hints about "important" and "less important" content (layzload, defer, async, etc) so it's a very active area right now.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-27-2014, 12:24 AM
Post: #3
RE: Elements Seem to Load Willy-Nilly Depending on Location
Ah, okay. Thanks.

AJ

Make your WordPress website or blog not just faster & not merely fast, but one of the fastest sites in the ENTIRE WORLD.

Performance. Speed. Get Some. WpFASTER!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)