Audio stops when you switch tabs in Chrome? Causes and fixes
On this page
When audio stops the moment you switch tabs in Chrome, the site is almost always pausing it on purpose. The browser tells every page when its tab is hidden, and many players are written to pause at that point. If the audio stops later and the page reloads when you return, Chrome unloaded the tab to save memory, which is a different problem with a different fix.
Chrome itself doesn't silence a tab just because you switched away. Background tabs are allowed to play sound, which is why music sites usually keep going. Work through the causes below in order.
First, rule out the simple things
- Check the tab for a muted speaker icon. Right-click the tab. If you see Unmute site, click it. Muting applies to the whole site, so it carries over to new tabs from the same site.
- Check that it is really stopped, not just silent. Switch back. If the progress bar moved on while you were away, playback continued and the problem is volume or output device, not tab switching.
- Try another site. If audio keeps playing on one site in the background but not another, the site is the cause, not your browser.
Cause 1: the site pauses when the tab is hidden
When you switch tabs or minimize the window, Chrome sets document.hidden to true and fires a visibilitychange event. The example MDN uses to explain this API is literally a page that pauses its audio when hidden and resumes when you come back (MDN):
document.addEventListener("visibilitychange", () => {
if (document.hidden) audio.pause();
});
Some sites go further and pause on the window blur event, which fires when you click into another app even if the tab is still on screen.
How to tell: the audio stops the instant you leave, and when you come back it is paused at exactly that point.
Fixes
- Look for a background-play setting. Some players have one. It is worth a quick look in the site's settings.
- Give the tab its own window. Drag the tab out of the tab strip and leave that window at least partly visible beside your work. A page counts as hidden when its window is minimized or fully covered (MDN), so a visible window doesn't trigger
visibilitychange. This won't help if the site pauses onblur. - Use an extension that hides tab switches. Focus Spoofer (which we make) is free and works in Chrome, Edge and Brave. On tabs you turn it on for, it keeps
document.hiddenfalse andvisibilityState"visible", blocksvisibilitychange,pagehideand window-levelblur, and keepsdocument.hasFocus()true. The player never learns you left, so it has no reason to pause. Tick "Always protect" for a site you use daily. Your browsing data stays in the browser, and there is no account.
For video players with the same behaviour, why videos pause when you switch tabs covers the extra causes that only affect video.
Cause 2: Chrome unloaded the tab
Chrome's Memory Saver deactivates tabs you aren't using and reloads them when you come back. Google lists active audio or video playback among the things that can prevent this (Chrome Help), so a tab that is actually playing is usually safe. The risk is a tab you paused, or one whose playlist ended. Once it is silent, it can be unloaded, and your place goes with it.
How to tell: the page loads from scratch when you return. If Inactive tabs appearance is on in Chrome's Performance settings, an unloaded tab's icon sits inside a ring.
Fix
- Open Chrome and go to Settings > Performance.
- Next to Always keep these sites active, click Add.
- Add the site (for example
open.spotify.comor the podcast site you use) and click Add.
You can also set Memory Saver to Moderate or turn it off. Chrome Memory Saver: on or off covers the trade-offs. In Edge, the equivalent list is Never put these sites to sleep under Settings > System and performance.
An extension can't override this. Focus Spoofer doesn't stop Memory Saver or Edge's sleeping tabs from unloading a tab; only the browser's exclusion list does.
Cause 3: the sound is tied to the page's animation loop
Games, music tools, metronomes and some interactive lessons don't use a plain audio player. They generate or schedule sound from JavaScript, often inside requestAnimationFrame or a timer. Chrome stops sending animation frames to hidden tabs, and throttles timers there too (Chrome for Developers). When the loop stops, so does the sound, or it stutters.
Pages that are making sound get lighter timer throttling, but animation frames still stop when the tab is hidden.
How to tell: the sound cuts out or stutters rather than pausing neatly, and the page's visuals are frozen when you return.
Fixes
- Put the page in its own visible window, as above. A visible page keeps getting animation frames.
- Focus Spoofer keeps
requestAnimationFramefiring in hidden tabs, which helps when the sound is driven by the animation loop. It doesn't remove Chrome's timer throttling, so a page that schedules sound only withsetTimeoutmay still drift. Background tab throttling in Chrome explains those rules.
Cause 4: a muted video, not audio
If the "audio" is a video's soundtrack and you muted the video inside its player, the problem may not be audio at all. People report that Chrome pauses muted video in background tabs, or stops drawing it. Unmute the player and mute the tab instead (right-click the tab, Mute site). The page then sees normal audible playback.
What isn't the cause
Energy Saver. On a laptop running on battery, Energy Saver stops some CPU-heavy background tabs, but Google says tabs that play audio aren't affected (Chrome Help). If sound stops only on battery, turn Energy Saver off under Settings > Performance to check; pages whose sound depends on scripts are the likeliest to be affected.
Chrome flags. Old guides suggest flags to disable background throttling. Some may not exist in current Chrome, and none of them stop a site from pausing its own player.
FAQ
Why does Spotify keep playing in the background but another site stops?
Each site decides what to do when its tab is hidden. Music services want you to switch tabs, so they keep playing. Other sites listen for visibilitychange or blur and pause on purpose.
Does Chrome stop audio in background tabs on its own?
No. Chrome lets background tabs play sound. It may unload a tab that has gone silent through Memory Saver, and it slows scripts in hidden tabs, but it doesn't pause a playing audio element because you switched away.
Will Focus Spoofer keep audio playing on my phone?
No. It is a desktop extension for Chrome, Edge and Brave. It doesn't run on mobile, Firefox or Safari.
How do I check whether a site can see me switch tabs?
Open the tab-switch detection test, switch to another tab for a few seconds and come back. It lists every signal the page received. With Focus Spoofer on for that tab, the list stays empty.