brillout / clocktab

Source code of Clock Tab.
https://clocktab.com
42 stars 16 forks source link

Solve inactive tab slow JS problem #1

Open brillout opened 4 years ago

brillout commented 4 years ago

From Tim

I pin a ClockTab tab in Chrome so I can glance at the tabs and get a current time. That works for a while on a freshly opened Chrome instance, but over time it seems that Chrome loses interest in updating the tab header. When I go to the tab, it wakes up and refreshes, but until I take tha explicit step I can't always rely on the value shown.

brillout commented 4 years ago

Possible solution: play inaudible sound

https://stackoverflow.com/questions/5927284/how-can-i-make-setinterval-also-work-when-a-tab-is-inactive-in-chrome https://stackoverflow.com/questions/6032429/chrome-timeouts-interval-suspended-in-background-tabs https://stackoverflow.com/questions/15871942/how-do-browsers-pause-change-javascript-when-tab-or-window-is-not-active