Q:

What are the best practices for loading javascript with the least amount of impact on display performance of the page?

Is there a way to download javascript without executing it?  I want to decrease my page load times so am trying to "lazy load" as much javascript onto the page while the user is idle.  However I don't want the javascript to execute, I just want it to be in the browser cache.
Should I use an object tag?  I noticed that I can use a LINK tag but that makes the browser think it's css which has a negative impact on my ui perf / responsiveness.

A:

You could load the file using the XMLHttpRequest object in JavaScript. (Aka AJAX). (end then of course just discard the result ^^).

