Skip to content

Instantly share code, notes, and snippets.

@ProximaMonkey
Created April 14, 2012 01:51
Show Gist options
  • Save ProximaMonkey/2381456 to your computer and use it in GitHub Desktop.
Save ProximaMonkey/2381456 to your computer and use it in GitHub Desktop.
I hate Internet Explorer
function(container, pins) {
pins.imagesLoaded(function(images){
container.masonry('appended', pins, false);
// IE fix preventing not loading images
jQuery.each(images, function(i, e, c) {
var tmp_src = jQuery(e).attr("src");
if (!e.complete) {
jQuery(e).attr("src", "");
jQuery(e).attr("src", tmp_src);
}
});
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment