oddworks blog

Prevent a tab from sleeping in Chrome, Edge, Brave and Firefox

On this page
  1. What "sleeping" actually means
  2. Chrome: Memory Saver
  3. Microsoft Edge: sleeping tabs
  4. Brave: Memory Saver
  5. Firefox: tab unloading
  6. Not sleeping, just slowed down
  7. FAQ

To stop a tab from sleeping, add its site to your browser's exception list: "Always keep these sites active" in Chrome and Brave, the sleeping tabs exception list in Edge. If you want no tab ever put to sleep, turn the feature off altogether. Firefox only unloads tabs when memory runs low, and you can switch that off in about:config.

A sleeping tab is not the only thing that stops a background page, though. Browsers also slow down timers in hidden tabs, and many sites pause themselves the moment you switch away. The sections below cover the sleep settings first, then those two other causes, so you can tell which one you are dealing with.

What "sleeping" actually means

Each browser uses its own name, but the idea is the same. After a tab sits unused for a while, the browser frees its memory. When you click back, the page reloads from scratch. Anything you were doing on it (a half-watched video, an unsaved form, a running timer) starts over.

Google describes the states a page can move through, including "frozen" and "discarded", in its Page Lifecycle API guide. A discarded tab still shows its title and icon in the tab strip, which is why it looks fine until you click it.

If the tab reloads when you come back, it was put to sleep. If it was still there but a video had paused or a counter had fallen behind, it was something else. Skip to the section "Not sleeping, just slowed down" below.

Chrome: Memory Saver

Chrome calls its tab sleeping feature Memory Saver. Per Google's help page, the controls are here:

Turn Memory Saver off

  1. Open Chrome and click the three-dot menu at the top right.
  2. Select Settings.
  3. On the left, select Performance.
  4. Turn Memory Saver off.

If you would rather keep it on, the same section lets you pick Moderate, Balanced or Maximum. Moderate waits the longest before deactivating a tab.

Keep one site awake

  1. Go to Settings > Performance.
  2. Next to Always keep these sites active, click Add.
  3. Pick a site from your open tabs, or enter its address by hand.

Entering a bare domain such as example.com covers its subdomains too. You can also enter a path, for example youtube.com/watch?v=* to cover YouTube watch pages.

Google lists several things that already stop a tab from being deactivated: playing audio or video, screen sharing, page notifications, active downloads, partly filled forms, pinned tabs and connected USB or Bluetooth devices. Pinning a tab (right-click the tab, then Pin) is the quickest per-tab fix.

We cover the trade-offs of leaving it on in Chrome Memory Saver: on or off, and how to exclude sites.

Energy Saver can stop tabs too

On a laptop, Chrome's Energy Saver (same Performance page) kicks in when you are unplugged or the battery is low. Google says it "stops eligible CPU-intensive background tabs". If background tabs only misbehave on battery, turn Energy Saver off, or click its icon next to the address bar and choose Turn off now for the current session.

Microsoft Edge: sleeping tabs

Edge's feature is called sleeping tabs. Microsoft's troubleshooting guide points to this page:

  1. Paste edge://settings/system/managePerformance into the address bar.
  2. Turn off Save resources with sleeping tabs to stop all tabs from sleeping.
  3. Or leave it on, raise the inactivity timeout, and add the site to the exception list below it.

The exception list has had different labels across Edge versions ("Never put these sites to sleep" in older builds, "Always keep these sites active" in newer ones). It sits in the same section either way. For managed PCs, Microsoft documents the SleepingTabsBlockedForUrls policy, which does the same job centrally.

The full walkthrough, including why Edge sometimes still reloads a tab, is in Edge sleeping tabs: how to turn them off or exclude a site.

Brave: Memory Saver

Brave is built on Chromium and uses the same Memory Saver. Brave's help article gives this path:

  1. Open the menu and select Settings.
  2. Go to System, then Performance (or paste brave://settings/system).
  3. Toggle Memory Saver off, or use Always keep these sites active > Add to exclude a site.

Brave says Memory Saver is off by default, so if your tabs reload, check whether it was switched on. Brave's settings layout has moved around in recent releases, and some users report the Performance controls missing in newer versions. If you can't find it, type "memory" into the search box at the top of Settings.

Firefox: tab unloading

Firefox does not put tabs to sleep on a timer the way Chrome and Edge do. According to Mozilla's support pages, it unloads least-recently-used tabs when the computer is running low on memory. You can see the list, and unload tabs by hand, at about:unloads.

To switch automatic unloading off:

  1. Type about:config in the address bar and accept the warning.
  2. Search for browser.tabs.unloadOnLowMemory.
  3. Set it to false.

Mozilla's own forum answers warn that turning this off can make Firefox more likely to crash when memory really does run out. If tabs reload often, closing a few heavy ones is the safer fix.

Not sleeping, just slowed down

If the tab never reloaded but stopped doing its job in the background, sleep settings won't help. Two other things are usually at work.

Timer throttling

Every major browser slows JavaScript timers in hidden tabs. In Chrome, a tab that has been hidden and silent for more than five minutes can have its chained timers run as little as once a minute, according to Chrome's developer blog. Countdown clocks, polling dashboards and some web apps fall behind as a result. We explain the rules, and which old chrome://flags fixes no longer exist, in background tab throttling in Chrome, explained.

The site pauses itself

Many video players, streams and timers listen for the browser telling them the tab is hidden, then pause on purpose. No browser setting changes that, because the browser is reporting the truth. This is the problem Focus Spoofer (which we make) is built for. On the tabs you choose, it keeps document.hidden false, reports the page as visible, blocks the visibilitychange and window blur events, and keeps requestAnimationFrame running in the background.

It's free, needs no account, and works in Chrome, Edge and Brave (not Firefox yet). It does not stop Memory Saver or sleeping tabs from discarding a tab, so pair it with the exclusions above. You can check what a site sees when you leave with the live tab-switch test, and read more on the Focus Spoofer page. For a step-by-step on keeping one particular tab going, see how to keep a tab active in Chrome.

FAQ

Does pinning a tab stop it from sleeping in Chrome?

Yes, Google lists pinned tabs among the things that can prevent Memory Saver from deactivating a tab. It's the fastest per-tab fix if you don't want to edit the exception list.

Why does my tab still reload after I added it to the exception list?

Check that the address you entered matches the page, including subdomains. A tab can also reload if the browser or the operating system is under heavy memory pressure, or if the site itself reloads on return.

Do sleeping tabs exist on Chrome for Android or iPhone?

Google says the Performance settings, including Memory Saver, can't be changed on Android or iOS. Mobile browsers manage background tabs on their own, and the fixes in this post are for desktop.

Will turning off tab sleeping slow my computer down?

It can if you keep many heavy tabs open, since each one keeps its memory. Excluding only the sites you need awake is usually a better balance than turning the feature off.

Is there an extension that stops tabs from being discarded?

Pinning and the built-in exception lists are the reliable way. Focus Spoofer solves a different problem: sites that pause when they detect you switched tabs. It does not prevent discards.

Keep reading