syphonx-core
Version:
SyphonX is a template-driven solution for extracting data from HTML in a highly efficient way. It combines the power of jQuery, Regular Expressions, and Javascript into a declarative template-driven format that extracts and reshapes HTML data into JSON.
18 lines • 617 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.waitForScrollEnd = void 0;
function waitForScrollEnd() {
return new Promise(function (resolve) {
var timer = setTimeout(function () { return resolve(); }, 3000);
function onScroll() {
clearTimeout(timer);
timer = setTimeout(function () {
removeEventListener("scroll", onScroll);
resolve();
}, 200);
}
addEventListener("scroll", onScroll);
});
}
exports.waitForScrollEnd = waitForScrollEnd;
//# sourceMappingURL=scroll.js.map