Skip to content

Instantly share code, notes, and snippets.

@lucas-pelton
Created November 30, 2022 16:46
Show Gist options
  • Save lucas-pelton/64660f26adef8b7176d9b4c18a7ebdbd to your computer and use it in GitHub Desktop.
Save lucas-pelton/64660f26adef8b7176d9b4c18a7ebdbd to your computer and use it in GitHub Desktop.
Wait for an object to be available in the DOM
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