Internet Explorer solves this problem by implementing the
defer attribute on the
<script/>, which effectively tells the browser to download the code but not execute it until the page is finished loading. Unfortunately, no other browser supports this attribute, so it’s not really practical to use.
Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.