3 ms·
I believe window.requestAnimationFrame is preferred over setInterval, and doesn't get limited as such. https://developer.mozilla.org/en-US/docs/Web/API/window.
by crandles 13y ago
I believe window.requestAnimationFrame is preferred over setInterval, and doesn't get limited as such.
https://developer.mozilla.org/en-US/docs/Web/API/window.requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window.requ...
- lewispollard 13y agoActually requestAnimationFrame is limited more (possibly even entirely paused) as it assumes that if the tab isn't visible, no animation needs to be requested