October 5, 2004

Loading JavaScript

Cameron has yet another home-run of an article/study. This time he looks into the optimal place to load JavaScript. The type of JavaScript we’re talking about is stuff that affects the whole page (content or styling). Simon has also looked into this problem.

What I found fairly interesting here was the load times of JavaScript based upon location. IE6 doesn’t like body.onload too much. Unless it’s in relation to an image. But Firefox likes the body.onload. Or rather, on a large page, hates the Content Call. These do not test the addLoadEvent Method of Simons, of which I wish they they did. Because both Content Calls and body.onload methods have their issues (and both will provide that FOUC

Post Info

Tagged As Javascript

Comments are Open (0)

Posted at 10:53 AM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu