A hidden tab throttles ride timers #132

Open
opened 2026-11-08 18:14:40 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-08 18:14:40 +00:00 (Migrated from github.com)

(session 31) A hidden tab throttles timers (Chrome: once a minute after 5 minutes); the clock catches up, but the seconds it missed have no readings. Keep the ride tab in front, or move the clock to a worker if this bites.

Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.

(session 31) A hidden tab throttles timers (Chrome: once a minute after 5 minutes); the clock catches up, but the seconds it missed have no readings. Keep the ride tab in front, or move the clock to a worker if this bites. _Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08._
chris-kreidl commented 2026-11-08 20:13:00 +00:00 (Migrated from github.com)

What this is about. Browsers slow down timers in background tabs. Chrome fires them only once a minute after 5 minutes hidden. If the ride screen's tab isn't in front, its clock catches up when you come back, but the seconds in between have no trainer readings and the ERG target isn't updated.

Status (checked 2026-11-08): unchanged; the clock runs on the page, not in a worker.

Workaround: keep the ride tab in front. Fix if it bites: run the clock in a Web Worker. Note whether it has happened on a real ride.

**What this is about.** Browsers slow down timers in background tabs. Chrome fires them only once a minute after 5 minutes hidden. If the ride screen's tab isn't in front, its clock catches up when you come back, but the seconds in between have no trainer readings and the ERG target isn't updated. **Status (checked 2026-11-08):** unchanged; the clock runs on the page, not in a worker. **Workaround:** keep the ride tab in front. **Fix if it bites:** run the clock in a Web Worker. Note whether it has happened on a real ride.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#132
No description provided.