Added timeouts to requestIdleCallbacks to deal with sites that run JS continuously
This commit is contained in:
parent
36951432cf
commit
0b3b0a2c58
@ -185,7 +185,7 @@ function startConstantVigilance() {
|
|||||||
window.requestIdleCallback(() => {
|
window.requestIdleCallback(() => {
|
||||||
killSticky();
|
killSticky();
|
||||||
starter();
|
starter();
|
||||||
});
|
}, {timeout: 1000});
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Commencing vigilance for stickies!");
|
console.log("Commencing vigilance for stickies!");
|
||||||
@ -202,7 +202,7 @@ function beginKillingStickies() {
|
|||||||
window.requestIdleCallback(() => {
|
window.requestIdleCallback(() => {
|
||||||
killSticky();
|
killSticky();
|
||||||
startConstantVigilance();
|
startConstantVigilance();
|
||||||
});
|
}, {timeout: 1000});
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************/
|
/******************/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user