Idle Until Urgent — Philip Walton
Really interesting pattern/JS snippet to defer calculation of an expensive task with `requestIdleCallback`, *except* if that task is "urgent" (i.e. required synchronously)
Really interesting pattern/JS snippet to defer calculation of an expensive task with `requestIdleCallback`, *except* if that task is "urgent" (i.e. required synchronously)