mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Use requestIdleCallback() in href-sanitizer
scriptlet
Instead of requestAnimationFrame().
This commit is contained in:
parent
4af57e3e60
commit
33749d2d3f
1 changed files with 1 additions and 1 deletions
|
@ -3455,7 +3455,7 @@ function hrefSanitizer(
|
||||||
if ( shouldSanitize ) { break; }
|
if ( shouldSanitize ) { break; }
|
||||||
}
|
}
|
||||||
if ( shouldSanitize === false ) { return; }
|
if ( shouldSanitize === false ) { return; }
|
||||||
timer = self.requestAnimationFrame(( ) => {
|
timer = self.requestIdleCallback(( ) => {
|
||||||
timer = undefined;
|
timer = undefined;
|
||||||
sanitize();
|
sanitize();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue