How an online timer keeps time
What decides whether an online timer is trustworthy is what it counts. A weak timer subtracts one second every time a one-second interval fires. This one stores the clock time at which the timer ends, and every few hundred milliseconds shows the difference from now.
That choice matters because browsers do not promise that a scheduled callback runs on time. The MDN documentation for setTimeout says plainly that browsers enforce a minimum delay in inactive tabs. A timer built on subtraction drifts behind. A timer built on an end time only updates late; the answer it shows is still right.
The alarm is queued on a different clock: when you press Start, the tone is scheduled on the Web Audio API's own high-precision clock, so it is not waiting on a throttled page timer.
Does an online timer work in a background tab?
Yes: the countdown stays correct, the alarm is queued on the audio clock, and the tab title shows the countdown. What changes is how often the visible numbers refresh.
| Browser | Hidden-tab behavior |
|---|---|
| Chrome | Timers throttled to about once per second; after 5 minutes hidden, chained timers can run once per minute |
| Firefox, desktop | Minimum delay of 1 second; no throttling if the tab holds an AudioContext |
| Firefox, Android | Minimum delay of 15 minutes for inactive tabs; the tab may be unloaded |
Source: Chrome for Developers, Heavy throttling of chained JavaScript timers (Chrome 88); MDN Web Docs, setTimeout.
Two limits apply to any web timer. If the device sleeps, the alarm will be late by however long it slept. If the browser unloads the tab to free memory, as mobile browsers sometimes do, the timer is gone; locked phones often freeze web pages too.
Pomodoro and other interval lengths
The Pomodoro Technique, created by Francesco Cirillo, splits work into intervals typically 25 minutes long, with short breaks between them and a longer break after four. To count up instead of down, use our stopwatch.
| Step | Typical length | Preset |
|---|---|---|
| Work session | 25 minutes | 25 min |
| Short break (after each of the first three) | 5 to 10 minutes | 5 or 10 min |
| Long break (after the fourth) | 20 to 30 minutes | 30 min |
| Total before the cycle restarts | 135 to 160 minutes | Four runs |
Source: Pomodoro Technique, as summarized by Wikipedia; totals are our own arithmetic.
What the timer needs your browser to allow
Each extra is optional; if one is missing, the timer still counts and plays its tone.
| Feature | Needs | If it is missing |
|---|---|---|
| Alarm sound | A click on Start (browsers block sound before a user gesture) | The tone may not play; use Test sound once first |
| Notification | Your permission, and a secure (https) page | Only the sound and the tab title tell you |
| Fullscreen | A click; supported on most desktop browsers | The button is hidden |
| Screen lock | The Screen Wake Lock API; page must stay visible | The screen may dim or sleep as usual |
Source: MDN Web Docs: Web Audio best practices (autoplay policy), Notifications API, Fullscreen API, Screen Wake Lock API.
The browser can refuse a wake lock, for example in power-saver mode, and releases it when the page is hidden; this page asks again when you come back.
A notification appears only if the tab is hidden when time runs out and you allowed it. Turn up the volume before you walk away.
Tips for reliable timing
- For a length that is awkward to enter, such as 2 hours 40 minutes plus 85 minutes, add the pieces with the time calculator first.
- For cooking or medicine, use a device alarm as well. A browser tab is a convenience, not a safety device.
Common questions
Why did my alarm not sound?
The usual causes are muted tab or device, a computer that went to sleep, or audio blocked because nothing on the page had been clicked. Press Test sound after loading to confirm audio works.
Can I run more than one timer at once?
One page runs one timer. Open the page in a second tab or window for a second countdown. For something that must happen at a clock time rather than after a length of time, use the alarm clock.
Is my time saved or sent anywhere?
No. The site counts page views, but the timer itself sends nothing.
Sources
- MDN Web Docs: Window.setTimeout(), timeouts in inactive tabs
- Chrome for Developers: Heavy throttling of chained JavaScript timers beginning in Chrome 88
- MDN Web Docs: Web Audio API
- MDN Web Docs: Web Audio API best practices (autoplay policy)
- MDN Web Docs: Screen Wake Lock API
- MDN Web Docs: Notifications API
- MDN Web Docs: Fullscreen API
- Wikipedia: Pomodoro Technique (25-minute sessions, 5-minute and longer breaks)
- NHS: How to wash your hands (around 20 seconds)
- American Dental Association: Toothbrushes (two minutes, twice a day)
- American Optometric Association: Computer vision syndrome (the 20-20-20 rule)
Last reviewed November 9, 2026. This timer is for convenience only and is not a safety device.
Related tools