background preloader

Loader

Facebook Twitter

Include JavaScript file inside JavaScript file. Untitled. JavaScript Madness: Dynamic Script Loading. Javascript Madness Intro Jan WolterMar 19, 2007 Introduction I've developed some pretty seriously Javascript intensive sites, where the sheer quantity of Javascript on the page is so much that I worry about the load time for the page getting too big.

JavaScript Madness: Dynamic Script Loading

Often large chunks of the Javascript code are only used very rarely, and it seems a shame to load all that code that the user will probably never use. So I wanted a way to dynamically load Javascript functions on demand.