From efcb12ff9f9ffeb470894bae4182b47dfe45fde3 Mon Sep 17 00:00:00 2001 From: Erik Arenhill Date: Thu, 26 Jan 2017 23:13:58 +0100 Subject: [PATCH] Now preserves the existing querystring questionmark if there already is one present, and uses an ampersand instead in that case. --- js/foundation.util.timerAndImageLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.util.timerAndImageLoader.js b/js/foundation.util.timerAndImageLoader.js index b0875ee00..cea9d1c0f 100644 --- a/js/foundation.util.timerAndImageLoader.js +++ b/js/foundation.util.timerAndImageLoader.js @@ -67,7 +67,7 @@ function onImagesLoaded(images, callback){ 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).attr('src', src + (src.indexOf('?') >= 0 ? '&' : '?') + (new Date().getTime())); $(this).one('load', function() { singleImageLoaded(); }); -- 2.47.2