Browser timers: sound, sleep and background tabs
A practical checklist for using a countdown without overestimating browser reliability.
A browser timer has two jobs: calculate the remaining time and produce a visible or audible alert. A correct remaining-time calculation does not guarantee that the browser can play a sound at the intended instant.
Before your session
- Open the timer on the device you will actually use.
- Press Test sound. Check the output device, browser mute setting and speaker volume.
- Run a short countdown while the page is visible and confirm both the sound and completion message.
- If you intend to switch tabs, rehearse that exact situation. A successful trial is useful evidence for your setup, but does not guarantee future behavior under battery saving or sleep.
How this countdown works
Starting saves a deadline based on device time. Each check compares the current time with that deadline. Pausing stores the remaining duration; resuming creates a new deadline. This avoids accumulating drift simply because one callback was delayed. Returning to the page triggers another check.
The completion check uses a periodic timer rather than depending on animation frames. Periodic checks can still be throttled or suspended. If the device sleeps through the deadline, completion is detected when execution resumes and the sound may be late. A manual change to system time can also alter the remaining duration.
What is saved?
The running countdown is kept in this page's memory. Reloading or closing it loses the session. A preset link saves a duration in seconds, not a deadline or remaining time. The alarm tool separately stores named alarm settings in local browser storage; those settings do not make a closed page run.
A useful fallback
For an essential reminder, use a dedicated device or operating-system alarm as your primary alert. Browser countdowns are convenient for practice, work sessions and displays where a delayed alert is manageable. Mozilla documents background scheduling restrictions that explain why behavior varies.
Updated September 19, 2026 · ClockWithSeconds / Cool My World · Report a correction