TikTok pauses when you switch tabs on desktop? How to fix it
On this page
TikTok on a desktop browser pauses because the site checks whether its tab is still visible and focused, and stops the video when it isn't. That is a choice made by TikTok's own code, not a browser setting, so there is no switch in Chrome to turn it off. You can work around it by keeping TikTok visible in its own window, or by using an extension that stops the page from seeing the tab switch.
This post covers tiktok.com in Chrome, Edge and Brave on a computer.
Why TikTok pauses and YouTube doesn't
Most video sites keep playing when you switch tabs. TikTok's site, built around one video on screen at a time, pauses playback once it decides you are no longer looking at it.
A web page has a few ways to notice that:
- The Page Visibility API. When you switch tabs or minimize the window, the browser sets
document.hiddentotrueand fires avisibilitychangeevent. MDN's Page Visibility API reference describes how it works. - Focus events. When you click into another app or window, the page gets a window
blurevent anddocument.hasFocus()starts returningfalse, even if the page is still on screen. - Animation frames.
requestAnimationFramecallbacks stop running in hidden tabs, so a page can tell it is in the background just by noticing they stopped.
We explain each of these, with examples from other sites, in can websites see when you switch tabs?. Which one TikTok relies on at any moment can change with site updates, so the workarounds below are ordered from least to most reliable.
Fix 1: Unmute the video
Before anything else, make sure the TikTok player isn't muted. People report that Chrome and other Chromium browsers pause or stop rendering muted video in background tabs, which stacks on top of TikTok's own pausing.
If you want it quiet, keep the player unmuted and mute the tab instead:
- Turn up the volume in the TikTok player.
- Right-click the TikTok tab in the tab strip.
- Select Mute site.
Fix 2: Give TikTok its own window
Switching tabs inside one window always hides the tab you left. A separate window avoids that:
- Drag the TikTok tab out of the tab strip so it opens as its own window.
- Resize it and place it where you can see part of it.
- Do your other work in your main browser window.
As long as the TikTok window isn't minimized, the page stays "visible". Two limits apply. On Windows, Chrome can report a window as hidden if another window covers it completely. And clicking into your other window still takes focus away from TikTok, so if the site is reacting to focus loss rather than visibility, it may pause anyway. Try it for a minute and see.
Fix 3: Picture-in-picture
Chrome can show a playing video in a small floating window that stays on top:
- Play a TikTok video.
- Click the Media control icon at the top right of Chrome.
- If a picture-in-picture button is offered for the video, click Enter picture-in-picture.
Google documents this on its media controls help page. Whether it works well depends on how TikTok's player is built at the time, and the feed won't move to the next video while the tab is in the background in the same way it does on screen. Treat it as a partial fix. Our comparison of picture-in-picture, a second window and an extension goes through the trade-offs.
Fix 4: Use an extension that hides the tab switch
If you want TikTok to keep playing in a normal background tab while you work in another tab, the page must not find out you left. Browsers have no setting for that. An extension has to change what the page sees, and it has to run before TikTok's own scripts load.
Focus Spoofer (which we make) does that on the tabs or sites you pick. With it turned on:
document.hiddenstaysfalseanddocument.visibilityStatestays"visible".visibilitychange,pagehideand window-levelblurandmouseleaveevents never reach the page.document.hasFocus()keeps returningtrue.requestAnimationFrameandrequestVideoFrameCallbackkeep firing while the tab is hidden.
Focus and hover events on elements inside the page keep working normally, so typing in comments and clicking buttons is unaffected.
Set it up for TikTok
- Install Focus Spoofer from the Chrome Web Store. It works in Chrome, Edge and Brave.
- Open tiktok.com and start a video.
- Click the Focus Spoofer icon and turn the switch on. The tab reloads with protection active.
- Tick Always protect this site so it's on every time you open TikTok.
- Switch to another tab and listen. The video should keep playing.
It is free, open source (GitHub), needs no account, and your browsing data never leaves the browser. It also has an optional fingerprint randomization setting for canvas, WebGL and audio, which you can turn off in its options if you don't want it.
What it can't do
- It can't stop Chrome's Memory Saver or Edge's sleeping tabs from discarding the tab. If TikTok reloads when you come back, exclude it in Settings > Performance > Always keep these sites active in Chrome (Google's steps), or under Never put these sites to sleep in Edge. See Chrome Memory Saver on or off for details.
- It doesn't run in Firefox or Safari yet, and it doesn't work in the TikTok phone app.
- It can't run on
chrome://pages, the Chrome Web Store or the built-in PDF viewer. None of those affect TikTok.
Check what TikTok can detect
Open the tab-switch detection test in a tab, switch to another tab for a few seconds, then come back. The page lists every signal it caught: the tab becoming hidden, the window losing focus, animation frames stopping. Turn on Focus Spoofer for the test tab and repeat. With protection on, the event log stays empty. Whatever the test page can see, TikTok can see too.
FAQ
Why does TikTok pause when I switch tabs?
TikTok's website checks whether its tab is visible and focused, using the Page Visibility API and focus events, and pauses the video when it isn't. It is the site's behavior, not a Chrome setting.
Is there a TikTok setting to keep videos playing in the background?
There is no such setting on tiktok.com that we know of. A separate window, picture-in-picture, or an extension like Focus Spoofer are the workarounds on desktop.
Why does TikTok pause even when the window is still on screen?
Clicking into another app or window takes focus away from the page, and a page can pause on that focus loss even though it is still visible. Keeping document.hasFocus() true and blocking window blur requires an extension.
Does Focus Spoofer work with TikTok in Brave and Edge?
Yes. It installs from the Chrome Web Store and runs in Chrome, Brave and Microsoft Edge on Windows, macOS, Linux and ChromeOS.
For the same problem on every other video site, read why videos pause when you switch tabs.