5 ms·
Why is it that if I have a video playing in another tab, the FPS goes from 60 to 10?
by xmonkee 6y ago
Why is it that if I have a video playing in another tab, the FPS goes from 60 to 10?
- nougatbyte 6y agoIts a browser feature to save performance
- tobyhinloopen 6y agoTimers and JS get throttled for inactive tabs and windows.
- hoorayimhelping 6y agorequestAnimationFrame 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_Visibility_API https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi...