4 ms·
I actually like having software and hardware that can be idle. I find it quite peculiar that some app/window/page I'm explicitly not interacting with should be
by qwery 4y ago
I actually like having software and hardware that can be idle. I find it quite peculiar that some app/window/page I'm explicitly not interacting with should be doing work because I'm not interacting with it.
- deleted 4y ago[deleted]
- madeofpalk 4y agoThe idea is that you schedule low priority work to happen with requestIdleCallback (which this is just a wrapper around), so it doesn't impact as much higher-priority tasks like responding to input or animations. For example, you may schedule periodic API polling (and JSON response parsing) using this API to prioritise user input handling. I would guess (but not know!) that the browser could de-prioritise these tasks even further when the browser decides to (such as when in the background).
- deleted 4y ago[deleted]