Skip to content

Instantly share code, notes, and snippets.

View Nicooow's full-sized avatar
🐈

nicow Nicooow

🐈
View GitHub Profile
var waitForEl = function(selector, callback) {
if ($(selector).length) {
callback();
} else {
setTimeout(function() {
waitForEl(selector, callback);
}, 100);
}
};