Created
July 1, 2019 23:29
-
-
Save awave1/090f24fc5c3ebbbb89b5a4ca192930b5 to your computer and use it in GitHub Desktop.
This file contains 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
if (!isLoaded()) { | |
var interval = setInterval(function () { | |
if (isLoaded()) { | |
clearInterval(interval); | |
loaded = true; | |
$(Event).trigger('loaded'); | |
} | |
}, 10); | |
} else { | |
loaded = true; | |
$(Event).trigger('loaded'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment