$.fn.image = function(fn) { var total = this.length, loaded = 0; this.each(function() { var i = new Image(); i.src = this.src; $(i).load(function(){ loaded++; if(loaded==total) fn(); }); }); }
// eg $('img.slide').image(function() { // success; }); Diogo Shaw