Fixes for tabs that stop working when you look away
Videos that pause when you switch tabs, tabs that fall asleep, timers that slow down. What causes each one and how to fix it, from the people who make Focus Spoofer.
Videos that pause in the background
- Why videos pause when you switch tabs, and how to stop it Videos pause in background tabs because the site is told you left, or because the browser sleeps, mutes or slows the tab. Here is each cause and its fix.
- Keep a video playing while you work: PiP, window or extension To keep a video playing while you work, float it with picture-in-picture, give it a visible window of its own, or use an extension. When each one works.
- Audio stops when you switch tabs in Chrome? Causes and fixes Audio usually stops in a background tab because the site pauses itself when the tab is hidden, or Chrome unloaded the tab. How to tell which, and fix it.
- Udemy or Coursera video pauses when you switch tabs? The fixes Course players pause when the tab is hidden or the window loses focus. How to keep a Udemy, Coursera or LinkedIn Learning lecture playing while you work.
- TikTok pauses when you switch tabs on desktop? How to fix it TikTok's website pauses videos when it detects you left the tab or window. Here is why, the free workarounds, and how to keep TikTok playing in the background.
- YouTube stops playing when you switch tabs? Desktop fixes YouTube keeps playing in background tabs on desktop, so a pause means a muted player, a sleeping tab, a setting or an extension. How to find which.
- Twitch pauses when you switch tabs? Every fix that works Twitch usually stops in a background tab because the stream is muted, the window is hidden, or the tab was put to sleep. Fixes for Chrome, Brave and Alt+Tab.
Tabs that sleep or slow down
- Prevent a tab from sleeping in Chrome, Edge, Brave and Firefox Add the site to your browser's never-sleep list, or turn tab sleeping off. Exact settings for Chrome, Edge, Brave and Firefox, plus what still slows tabs.
- How to keep a tab active in Chrome when you switch to another tab Exclude the site from Memory Saver or pin the tab, then stop the page from pausing when it's hidden. Every built-in fix in Chrome, plus when an extension helps.
- Background tab throttling in Chrome, and how to turn it off Chrome slows timers in hidden tabs, to once a minute after five silent minutes. How the three tiers work, which flags are gone and what still turns it off.
- Edge sleeping tabs settings: turn them off or keep a site awake Turn off sleeping tabs in Edge under Settings > System and performance > Performance, or add a site to the always-active list. Steps, timeouts and policies.
- Chrome Memory Saver on or off? What it does, how to exclude sites Leave Memory Saver on and exclude the sites that must stay loaded. How to turn it on or off, pick a level, add exceptions and stop a single tab from reloading.
The Page Visibility API
- Page Visibility API explained: document.hidden vs visibilityState document.hidden is a boolean and visibilityState is a string, but both read the same state. How the API works, when it fires, and patterns that hold up.
- requestAnimationFrame in background tabs: why it stops and fixes Browsers pause requestAnimationFrame in hidden tabs, then fire once on return with a big time jump. Why, how to handle the gap, and what keeps work running.
- Page Visibility API test: check what a site sees when you leave Open focus.oddworks.us/test, switch away and come back to see every visibility and focus event a site could catch. Here is what each tile and log entry means.
- How to disable the Page Visibility API: 3 ways, with code Block visibilitychange and pin document.hidden to false with uBlock Origin filters, a Tampermonkey userscript or an extension. Exact code and what each misses.
- Can websites see when you switch tabs? What they detect and how Yes. Any page can tell when its tab is hidden or its window loses focus, but not where you went. Here is what sites detect, why they do it, and how to stop it.