Right up front: this project doesn\'t use JQuery.
We have some third-party JavaScript; it\'s big and hairy and doesn\'t need to be used often, so we\'re dynamically loa
You may try this
function loadBigHairyCode()
{
var file = document.createElement('script')
file.onreadystatechange= function () { // works in IE
if (this.readyState == 'complete') MyFunc();
}
file.onload= MyFunc;
file.type="text/javascript";
file.src="path/to/big/ugly/script/file.js";
document.getElementsByTagName("head")[0].appendChild(file)
}
function MyFunc(){
//....
}
Update: You may read this.