Keeping a browser timer accurate in background tabs (what I learned building ClockAura)
I run ClockAura , a free site of online timers: countdowns, a Pomodoro timer, a stopwatch, interval timers for the gym. The first versions had the bug I suspect every browser timer has at some point: start a countdown, switch to another tab, and it rings late. Sometimes minutes late. The bug wasn't in one line of code. It came from an assumption: that the browser keeps running your code at the…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.