requestIdleCallback()
Limited availability
The requestIdleCallback()
API queues a function that runs in idle browser time, either at the end of a frame or when the user is inactive. Also known as the background tasks API.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 47 Released on 2015-12-01
- Chrome Android 47 Released on 2015-12-02
- Edge 79 Released on 2020-01-15
- Firefox 55 Released on 2017-08-08
- Firefox for Android 55 Released on 2017-08-08
- Safari ❌ See webkit.org/b/164193
- Safari on iOS ❌ See webkit.org/b/164193
Baseline availability blocked since January 2020 by Safari (59 months)