Simple image preloading with jQuery and promises
I made a simple image jQuery image preloader that uses the jQuery.Deferred object to attach callbacks.
$.preload(url, url, ...).done(function(img, img ,...) {
// do magic stuff
});
Written by Alejandro Fernández
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#