Product Description
// 15000) {
console.log(‘failed to find:’, selector);
return;
}
if (typeof selector !== ‘string’) {
const found = [];
selector.forEach((s) => {
if (document.querySelector(s) !== null) {
found.push(s);
}
});
if (found.length === selector.length) {
callback();
return;
}
}
if (typeof selector === ‘string’ && document.querySelector(selector) !== null) {
callback();
return;
}
setTimeout(() => {
waitForElement(selector, callback, time, newElapsedTime);
}, time);
}
function initNavHandler() {
waitForElement(hiddenFields, removeAttrs, 15);
}
document.addEventListener(“DOMContentLoaded”, function () {
defer(initNavHandler, 15);
});
// ]]>
Specifications
- Weight: 1 oz


