Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsLoader

Dynamic javascript loader for browser

EASY TO USE

JsLoader.load(file:string [,onSuccess,onError]);

JsLoader.loadFiles(file:string || files:array
 [onFinish,onSuccess,onError])


/*example*/
JsLoader.loadFiles('./test1.js');
JsLoader.loadFiles(['./test2.js','./test1.js']);
JsLoader.load('https://some.place.net/xxx.js');

cache

JsLoader wont reload the files which has already loaded.

  • some.js & ./some.js & some.js?v1.2 will be regard as same file

safety

JsLoader wont allow the different origin file to be loaded

If you want to cancel this limit, Just set

JsLoader.allowCrosArg = true;

Browser support & dependencies

This script does not require any library, since it is written in native javascript. It should work on all popular browsers (including the ancient IE6 :))

About

dynamic js loader for browser

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages