Skip to content

Streamline and simplify the fallback logic

Latest
Compare
Choose a tag to compare
@danieleloscozzese danieleloscozzese released this 11 Jan 18:16
· 3 commits to main since this release
3c524c2

requestIdleCallback is no longer used, since its implementation was a misuse.

Whenever the Scheduler API is not supported, use a delayed callback: this aligns the behaviour on Node.js to a browser with a fallback, since the exception for Node was not justified.
When the priority is user-blocking and the Scheduler is not supported,
queue a microtask where possible.