requestIdleCallback
Example: https://developer.mozilla.org/en-US/docs/Web/API/Background_Tasks_API#Example
IdleListener
IdleDetector