Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xmonkee
· 6y ago · 0 comments
Why is it that if I have a video playing in another tab, the FPS goes from 60 to 10?
Comments
[–]
tobyhinloopen
6y ago
Timers and JS get throttled for inactive tabs and windows.
[–]
hoorayimhelping
6y 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...
[–]
nougatbyte
6y ago
Its a browser feature to save performance