From 1f8323fb8fee246e15c8ad2e6ef81c5c1cbff080 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 14 Dec 2016 15:07:06 +1300 Subject: [PATCH] Improve robustness of navigation footer --- scripts/system/html/js/marketplacesInject.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/system/html/js/marketplacesInject.js b/scripts/system/html/js/marketplacesInject.js index 1a64668c0e..846388794a 100644 --- a/scripts/system/html/js/marketplacesInject.js +++ b/scripts/system/html/js/marketplacesInject.js @@ -220,12 +220,6 @@ } // Load / unload. - try { - // This appears more responsive to the user but $ is not necessarily loaded in time for each marketplace. - $(document).ready(function () { onLoad(); }); - } - catch (e) { - window.addEventListener("load", onLoad); - } + window.addEventListener("load", onLoad); // More robust to Web site issues than using $(document).ready(). }());