Hacker News new | ask | show | jobs
by 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...