node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

stupid-imagesloader

Stupid Images Loader

A simple image collection loader

 
var Imagesloader = require('stupid-imagesloader');
var imagesloader = Imagesloader();
 
imagesloader
.load(['image1.jpg','image2.jpg','image3.jpg','image4.jpg','image5.jpg'])
.success(function(images){
    console.log('images loaded', images);
})
.error(function(msg){
    console.log(msg);
})
.notify(function(msg){
    console.log(msg); // Notifies everytime one image is loaded 
});