Skip to content

Instantly share code, notes, and snippets.

var waitForJquery = function(jqueryCallback, interval) {
if(typeof $ === 'function') {
jqueryCallback();
} else {
setTimeout(function() {
if(typeof $ === 'function'){
jqueryCallback();
} else {
waitForJquery(jqueryCallback, interval);
}