3 ms·
The requestIdleCallback approach can be a nice alternative to requestAnimationFrame or debouncing. But note that requestIdleCallback is not supported in Safari
by montroser 5y ago
The requestIdleCallback approach can be a nice alternative to requestAnimationFrame or debouncing.
But note that requestIdleCallback is not supported in Safari, so you have to shim it there.
The spec is a good read: https://w3c.github.io/requestidlecallback/ https://w3c.github.io/requestidlecallback/