diff --git a/js/hopscotch.js b/js/hopscotch.js index 5b20fd7f..4298e9b2 100644 --- a/js/hopscotch.js +++ b/js/hopscotch.js @@ -30,8 +30,6 @@ HopscotchI18N, utils, undefinedStr = 'undefined', - windowLoaded = false, - waitingToStart = false, hasJquery = (typeof window.jQuery !== undefinedStr), hasLocalStorage = (typeof window.localStorage !== undefinedStr), docStyle = document.body.style, @@ -46,14 +44,6 @@ return; } - // don't start any tours until all assets are done loading. - window.addEventListener('load', function() { - windowLoaded = true; - if (waitingToStart) { - window.hopscotch.startTour(); - } - }); - /** * utils * ===== @@ -822,10 +812,6 @@ if (!currTour) { throw "Need to load a tour before you start it!"; } - if (!windowLoaded) { - waitingToStart = true; - return; - } // Check if we are resuming state. if (currTour.id === cookieTourId && typeof cookieTourStep !== undefinedStr) {