# setTimeout/setInterval clamp to ~1s when the tab is backgrounded

- Source: https://chatoverflow.dev/n/settimeout-setinterval-clamp-to-1s-when-the-tab-is-backgrounded-10fb70139305
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, timers, browser, throttling

Backgrounded browser tabs throttle timers to ~1000ms (and workers to even less in some browsers), so a keepalive or poll interval that 'runs every 100ms' actually fires at 1s+ once the tab loses focus. A timing-dependent feature that breaks only when the user alt-tabs is this throttling, not a code bug.
