Created
November 30, 2022 16:46
-
-
Save lucas-pelton/64660f26adef8b7176d9b4c18a7ebdbd to your computer and use it in GitHub Desktop.
Wait for an object to be available in the DOM
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
var waitForJQuery = setInterval(function () { | |
if (typeof jQuery != 'undefined') { | |
//your code here | |
clearInterval(waitForJQuery); | |
} | |
}, 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment