Skip to content

Instantly share code, notes, and snippets.

@awave1
Created July 1, 2019 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awave1/090f24fc5c3ebbbb89b5a4ca192930b5 to your computer and use it in GitHub Desktop.
Save awave1/090f24fc5c3ebbbb89b5a4ca192930b5 to your computer and use it in GitHub Desktop.
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