Return to Snippet

Revision: 18846
at October 9, 2009 17:04 by rportela


Initial Code
loadExternalJScript : function(scriptURL, id){
	var script = document.createElement('script');
	script.src = scriptURL;
	script.id = id;
	script.type = 'text/javascript';
	script.charset = 'utf-8';
	// Add the script to the head, upon which it will load and execute.
	var head = document.getElementsByTagName('head')[0];
	head.appendChild(script);
}

Initial URL

                                

Initial Description

                                

Initial Title
Delay loading JS Files

Initial Tags
ajax

Initial Language
JavaScript