Created
September 4, 2014 18:36
-
-
Save cbourdage/54377436c07fed6082c5 to your computer and use it in GitHub Desktop.
Image load function to force for IE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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