Hacker News new | ask | show | jobs
by xmonkee 2243 days ago
Why is it that if I have a video playing in another tab, the FPS goes from 60 to 10?
3 comments

Timers and JS get throttled for inactive tabs and windows.
requestAnimationFrame stops its timers when tabs become inactive. To fix this, reset timer values when the browser tab receives focus.

https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi...

Its a browser feature to save performance