preimg
v0.0.1
Published
A JavaScript Library for preload images
Downloads
4
Readme
preimg
A JavaScript Library for preload images.
Install
Using npm
npm install preimg
Example
Preload some images
var arr = ['/imgs/comment.png', '/imgs/blue.png'];
preimg(arr).done(function(imgs) {
// imgs is Array, typeof HTML DOM Image
});