iamjpg / Ez-Background-Resize

Resizable full-browser background image using jQuery. Implementation requires no CSS.
http://johnpatrickgiven.com/jquery/background-resize/
89 stars 32 forks source link

fix cached img bug in IE7 #11

Open baonhan opened 11 years ago

baonhan commented 11 years ago

Just a small fix. In IE6/7, load callback function is not called if the images have been cached.

Replaced: $("").attr("src", jqez.img).load(function() {.....})

By: $("").load(function() {.....}).attr("src", jqez.img)