FluidFramework
FluidFramework copied to clipboard
Idle callback api
Add RequestIdleCallback API
My plan was to create an API that would add non-essential tasks to a queue that would run during idle time, if requestIdleCallback was available. If unavailable, it would default to using setTimeout.
After adding to the Task queue, run the queue and execute the pending callbacks as long as there is time remaining.