1.2.2 • Published 8 years ago

res-preloader v1.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

res-preloader

NPM

install

# use npm
$ npm install res-preloader
 

usage

	var resPreloader = require('res-preloader');

	resPreloader({
		retryInterval: 1000,	// retry load interval (default is 0, millisecond) 
		retryLimit: 3,			// retry limited times	(default is 0)
		resources:[
			'../images/xxx.jpg',
			'../images/xxx.png',
			....
		],
		callback: function(data, e) {
			if (e) {
				...	
			} else {
				...		
			}	
		}		
	});
1.2.2

8 years ago

1.2.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago