Skip to content

Instantly share code, notes, and snippets.

@cbourdage
Created September 4, 2014 18:36
Show Gist options
  • Select an option

  • Save cbourdage/54377436c07fed6082c5 to your computer and use it in GitHub Desktop.

Select an option

Save cbourdage/54377436c07fed6082c5 to your computer and use it in GitHub Desktop.
Image load function to force for IE
$thumbnail.find('img').one('load', function() {
var $this = $(this);
if($this.attr('src').replace('thumbnails', 'fullsize') == $lgImg.attr('src')){
$this.parent('a').addClass('active');
}
}).each(function() {
if($(this).complete){
$(this).load();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment