]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix bug in orbit and other sizing on old IE 9463/head
authorKevin Ball <kmball11@gmail.com>
Tue, 6 Dec 2016 22:51:03 +0000 (14:51 -0800)
committerKevin Ball <kmball11@gmail.com>
Tue, 6 Dec 2016 22:51:03 +0000 (14:51 -0800)
js/foundation.util.timerAndImageLoader.js

index 0da3e054e193abbdc8377fe0b58b40e7acef06d4..b0875ee004d1b6eb6889e208a3f99d0c743103ac 100644 (file)
@@ -65,6 +65,9 @@ function onImagesLoaded(images, callback){
     }
     // Force load the image
     else {
+      // fix for IE. See https://css-tricks.com/snippets/jquery/fixing-load-in-ie-for-cached-images/
+      var src = $(this).attr('src');
+      $(this).attr('src', src + '?' + (new Date().getTime()));
       $(this).one('load', function() {
         singleImageLoaded();
       });