Discussion in 'Closed Suggestions' started by ankurs, Aug 11, 2010.
Move all .js references to the footer ?
why would you do that?
will make pages load faster , read the yahoo link which i posted
Not all scripts produce these issue, Google Analytics uses asynchronous loading. I believe async can be implemented. Whilst it'll make the page load faster, some components of the page will not work until the JS has finished loading.
All CSS should be at the top of the page and all JS should be at the bottom.
But as vrtsolus stated,
it'll make the page load faster, some components of the page will not work until the JS has finished loading.
Check out the difference:
That example was horrible, and plus, I couldn't see any elements using the script.
The examples shows the point.
That page is designed to take 10 seconds to load.
JS on top - 8 seconds for js then the other 2 for content
JS on bottom - 2 secs for content first then 8 seconds for JS
Which would you rather see first?
I'd rather see the second, but this can be resolved using async load.
• XHR Eval
• XHR Injection
• Script in Iframe
• Script DOM Element
• Script Defer
• document.write Script Tag
Yep, and I seem to have a moderate issue. Load up the following page in Firebug: http://www.radonsystems.net/home and see the net tab. You'll see what I mean.
UI preload methods should simply go to the top, libraries can be at the top, but preferred to be on a cdn.
And everything that's asynchronous can be at the top. everything that compliments the page and can be called post-loading the layout, and isn't asyn. should in my opinion be thrown at the bottom.
Load the page in timeline on Safari, and you will see there's currently no issue with the way things are loaded.
Was just about to suggest this myself - please consider it
It already has CDN capabilities; they're using local to save time during the alpha.
EDIT: I mean for js, not for other things, so theres no misunderstanding with my post.
My preliminary experiments with doing this have been unsuccessful to date, due to TinyMCE requirements.
Actually, the TinyMCE init code has recently changed, so it we may be able to revisit it.
this is good news - a millisecond/second here and there all adds up to a FASTER xenforo
Especially once you start getting tons of traffic/views, then those seconds can REALLY add up!
mike, any update on this ?
or do it partially by keeping timymce js in header and move rest .js to footer
Is this still being worked on ?
Separate names with a comma.