JavaScript – Script Loader
Version: 13.2
Revision: 32 Build 11
JavaScript – Script Loader
Introduction: this tutorial is about loading multiple script without delays.
But, this script is a little more basic and it should be easy enough to master…
1.] Download notepad++ from the original author or from a mirror and install the software.
——————————-
http://sourceforge.net/projects/notepad-plus/
http://filehippo.com/download_notepad/
——————————-
2.] Copy this “JS script” and save it as a “.js” extension.
Tips: you can add more than one “scriptLoader” into your script.
File: script_loader.js
—Copy Source Code—
/**
Copyrighted by Lair360
Version: 19.1a
Revison: 11 Build 8
*/
function scriptLoader(url)
{
document.write('<script src="', url, '" type="text/JavaScript"><\/script>');
}
//Loads external external script
scriptLoader("demo.js");
—End Source Code—
Notes: you’ll need to replace “demo.js” with your own javascript file.
That is all…
3.] Add this html – snippet and place it in the “head” tags.
—Copy Source Code—
<script src="script_loader.js" type="text/javascript"></script>
—End Source Code—
4.] Save your webpage and test your website!
5.] Finish!
Copyrighted by Lair360


