Blog

Why browser timers pause when your computer sleeps

Learn why browser timers can pause during sleep, how to tell sleep from tab throttling, and what to change when a countdown must keep time.

Emily ParkerTools and utilities 4 min read

You start a browser countdown, close the laptop lid, and expect it to ring on time. Instead, it seems frozen when you wake the computer, or the alert never sounded. That can happen because sleep stops the browser from running its timer code.

Use the Timer & Stopwatch to try a short countdown and compare what happens when the computer sleeps with what happens when only the tab is in the background. The difference helps you decide whether you need to change a setting or use a timer that can run while the computer is asleep.

Check what happens to a browser timer

  1. Open Timer & Stopwatch in a browser tab and set a countdown for two minutes.
  2. Start the countdown and leave the tab open. First, switch to another app or tab for 30 seconds, then return and check whether the timer kept moving.
  3. Start another two-minute countdown. Put the computer to sleep for about 30 seconds using its normal sleep command, then wake it and check the remaining time.
  4. Compare the two results. A timer that behaves differently during sleep is showing an operating-system limit, not necessarily a broken timer.

Do not rely on this short test for an important appointment or safety alert. Browser behavior can vary with the operating system, power settings, and browser, and a timer cannot wake a sleeping computer unless the device and software specifically support that feature.

What the result means

The timer continues after switching tabs

The browser is still running, although it may reduce how often background tabs update. A countdown can look as if it is moving in jumps when you return. That is different from sleep, when the computer suspends most work.

The timer is behind after the computer wakes

The page may have counted down by running repeated updates, such as subtracting one second each time a callback runs. Those callbacks stop during sleep, so the displayed time can lag behind real time. The page may also refresh its display only after you return to it.

The timer catches up, but no alert sounded

The timer may calculate the deadline from the clock and update the remaining time after wake. That can make the display correct without allowing the browser to play an alert during sleep. The computer was not awake to run the alert code or play sound.

The countdown appears paused until you revisit the tab

The browser may have suspended or heavily throttled the page while it was hidden or the computer slept. Check the actual remaining time after waking, rather than judging only by whether the digits changed while you were away.

How to make a timer more reliable

  1. Keep the computer awake for a browser alert. If you need the browser itself to sound an alert, keep the computer awake and the browser open. Lowering display brightness or turning off the screen is not the same as putting the computer to sleep.
  2. Change the sleep setting for the task. In Windows 11, open Settings › System › Power & battery › Screen and sleep and extend the sleep time while plugged in. On a Mac, check System Settings › Battery and its power options, if available, for a setting that prevents automatic sleep while connected to power. Desktop Mac settings may appear under System Settings › Energy Saver.
  3. Keep the timer tab open. Do not close the tab or quit the browser if you expect a page-based alert. A background tab can be throttled, but closing the page ends its timer.
  4. Check sound and alert permissions. Make sure the computer is not muted and that any browser or site alert permission is allowed. Also check whether a focus mode or do-not-disturb setting is silencing notifications.
  5. Use a timer that runs independently of the browser. For a deadline that must arrive while the computer sleeps, use a phone, a dedicated clock, or an operating-system alarm designed to work in that state. Confirm its behavior with a short test before relying on it.

Screen off does not always mean asleep

A computer can turn off its display while leaving the processor and browser running. In that state, a browser timer may continue. Sleep is different: the operating system pauses most applications to save power, so a page cannot keep counting down by running code.

Closing a laptop lid often triggers sleep, but the exact action depends on its power settings. Some computers can stay awake with the lid closed, especially when connected to power or an external display. If you are unsure which state the computer entered, test the timer with the lid open and use the operating system's explicit sleep command for comparison.

For tasks that need a sound at a precise time, keep the device awake or choose an alarm that can operate without an active browser page.