IdleDeadline
The object passed to a requestIdleCallback callback, whose timeRemaining() method says how many milliseconds of idle time are left.
In more detail
Loop while deadline.timeRemaining() > 0 and reschedule the rest. didTimeout is true when the callback was forced to run by its timeout.
Related terms
- requestIdleCallback — A function that schedules low-priority work to run when the browser has spare time at the end of a frame.
Taught in
- requestAnimationFrame vs requestIdleCallback: High-FPS Work — Frontend Architecture & Web Platform