3 ms·
Unlike setTimeout, requestAnimationFrame callbacks are automatically skipped if the browser viewport is minimized or no longer visible. You wouldn’t want to mi
by jw1224 2y ago
Unlike setTimeout, requestAnimationFrame callbacks are automatically skipped if the browser viewport is minimized or no longer visible. You wouldn’t want to miss the frame that matters!
- chii 2y agoalso, not to mention that setBigTimeout would still work in serverside js, while requestanimationframe doesn't!