The jQuery library provides loading functionality in one line:
¬†¬†¬†alert("Script loaded and executed.");
¬†¬†¬†// Use anything defined in the loaded script...
Dynamic Script Loading
Add a script tag with the script URL in the HTML. To avoid the overhead of jQuery, this is an ideal solution.
The script can even reside on a different server. Furthermore, the browser evaluates the code. The