this is a simple javascript file loader, this proviod to event to attach
- onReady
2. onLoad
example :
var loader = Loader;
loader.onReady = function(){
alert('all file were loaded');
}
loader.on('load', function(name) {
alert(name + ' loaded');
});
loader.load([
'http://www.laruence.com/1.js',
'http://www.laruence.com/test.js',
'http://www.laruence.com/main.js'
]