2 ms·
You still haven't answered the question. Your link has no example of use cases, though it has warnings about what not to do.
by remram 4y ago
You still haven't answered the question. Your link has no example of use cases, though it has warnings about what not to do.
- collaborative 4y agoCan't reply above. So it's "low-priority" async?
- Kiro 4y agoExample: In a map application you give priority to rendering the visible map tiles while deferring preloading the surrounding non-visible tiles until the CPU is free. So basically it only renders tiles outside the viewport in a cache if the CPU is not already busy rendering what you're currently looking at. Any sort of thing that is not urgent and high priority, and where it's no big deal if it's not executed immediately will benefit from being run in requestIdleCallback.