Skip to content

A library that takes an image URL, preloads it and triggers a supplied callback.

License

Notifications You must be signed in to change notification settings

anthonyhastings/image-preloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImagePreloader

This library offers an easy to use method of preloading an image resource that, upon completion, will fire a callback if one was supplied. It uses a UMD wrapper to make itself available to AMD, CommonJS and vanilla JS loading.

Example Usage

new ImagePreloader('/path/to/image.jpg', function() {
  console.log('Image preloading is complete.');
});

License

MIT

About

A library that takes an image URL, preloads it and triggers a supplied callback.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published