$loadscript
Asynchronously load a script file.
$loadscript( src )
src [string]
The url of target script file.
Notes
This function is useful to load a script file from server after the whole page is loaded.
Example
HTML code
<button onclick="start_load_jQuery()">Load jQuery</button>
JavaScript code
function start_load_jQuery()
{
var script = $loadscript("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");
script.onload = function ()
{
alert( "jQuery is loaded. The version is " + $().jquery );
};
}