Skip to content

Instantly share code, notes, and snippets.

@PizzaBrandon
PizzaBrandon / jquery.waituntilexists.js
Last active May 25, 2021 — forked from buu700/jquery.waituntilexists.js
Updated waitUntilExists plugin
View jquery.waituntilexists.js
;(function ($, window) {
var intervals = {};
var removeListener = function(selector) {
if (intervals[selector]) {
window.clearInterval(intervals[selector]);
intervals[selector] = null;
}