Skip to content

Instantly share code, notes, and snippets.

View trananhmanh89's full-sized avatar
👻

Mr. Meo trananhmanh89

👻
  • Hà Nội
  • 02:17 (UTC +07:00)
View GitHub Profile
@chrisjhoughton
chrisjhoughton / wait-el.js
Last active October 6, 2023 09:46
Wait for an element to exist on the page with jQuery
var waitForEl = function(selector, callback) {
if (jQuery(selector).length) {
callback();
} else {
setTimeout(function() {
waitForEl(selector, callback);
}, 100);
}
};