Skip to content

A little library for loading multiple scripts with javascript

Notifications You must be signed in to change notification settings

Abrissirba/ScriptLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScriptLoader

A library that lets you download javascript files when needed. Supports both synchronously and asynchronously downloading of multiple javascript files at the same time.

Install

bower install abris-scriptloader --save

Usage

<script src="scriptLoader.js"></script>
<script> 
    var loader = new ScriptLoader({async: true});
    loader.loadScripts(["src/test/one.js", "src/test/two.js","src/test/three.js"], 
        function(){
            console.log("All script loaded" );
        },
        function(src){
            console.log("Something went wrong" + src);
        }
    );
</script>

About

A little library for loading multiple scripts with javascript

Resources

Stars

Watchers

Forks

Packages

No packages published