Y
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
tobyhinloopen
2243 days ago
Timers and JS get throttled for inactive tabs and windows.
link
hoorayimhelping
2243 days ago
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...
link
nougatbyte
2243 days ago
Its a browser feature to save performance
link