Quick fix: Open Edge → Settings → System and performance → Optimize performance → Sleeping tabs. Click Add next to Never put these sites to sleep and add your streaming domains (e.g., youtube.com, twitch.tv, open.spotify.com). Or toggle Sleeping tabs entirely Off.
You start a YouTube video, switch to another tab to read something, and the audio cuts off after 5 minutes. Or you’re listening to Spotify in a background tab and it stops mid-song. Edge’s Sleeping Tabs feature pauses tabs you haven’t interacted with recently to save RAM, but it doesn’t reliably detect “this tab is playing media” for all streaming sites. The fix is to exclude streaming sites from the sleep rules.
Affects: Microsoft Edge 89+ with Sleeping Tabs enabled.
Fix time: ~3 minutes.
What causes this
Edge’s Sleeping Tabs feature unloads background tabs from memory after a configured idle period (default 5 minutes, can be 30 seconds to 12 hours). The detection heuristic is meant to skip tabs playing audio or video — but it relies on the page reporting itself as “actively playing” via the HTML5 media API. Sites that use custom audio players (SoundCloud old player, certain podcast embeds, Google Drive video previews) don’t register correctly, and Edge sleeps them.
The result: media stops, the tab’s favicon shows a small “Z” icon indicating it’s sleeping, and you have to click the tab to wake it.
Method 1: Add streaming sites to the “never sleep” list
The targeted fix — keeps Sleeping Tabs benefits for non-streaming sites while protecting your streaming sites.
- Open Edge. Click the three-dot menu → Settings.
- In the left sidebar, click System and performance.
- Scroll to Optimize performance → Sleeping tabs.
- Confirm Save resources with sleeping tabs is toggled On (you want to keep the feature, just exclude streaming).
- Find Never put these sites to sleep. Click Add.
- Enter the domain you want to exclude:
youtube.com,www.youtube.com,twitch.tv,open.spotify.com,soundcloud.com,music.amazon.com, etc. - Use the wildcard
[*.]example.comformat (e.g.,[*.]youtube.com) to include all subdomains. - Click Add after each entry.
- Close Settings. The change applies immediately to currently open tabs.
Repeat for every streaming site you regularly use. Once added, those sites stay awake regardless of how long you ignore the tab.
Method 2: Increase the sleep timeout
For when you don’t want to maintain an exclusion list — set a long enough timeout that streaming sessions complete first.
- Open Edge → Settings → System and performance → Sleeping tabs.
- Find Put inactive tabs to sleep after the specified amount of time.
- The default is 5 minutes. Change to 2 hours or 6 hours for podcast/audiobook listening, or 12 hours if you regularly leave streams running overnight.
- Edge applies the new timeout to all current tabs.
- The trade-off: tabs use more RAM because they don’t sleep until much later. On 16+ GB PCs this is negligible; on 8 GB PCs it can cause noticeable slowdown.
This is the right approach if you have many different streaming sites or sometimes use ones you haven’t added to the exclusion list yet.
Method 3: Disable Sleeping Tabs entirely
For users who want full background tab activity at the cost of RAM usage.
- Open Edge → Settings → System and performance → Sleeping tabs.
- Toggle Save resources with sleeping tabs to Off.
- Also toggle Fade sleeping tabs Off (the visual fade that indicates a tab is asleep) for completeness.
- To get back resources: increase tab discarding via
edge://flags→ search “Tab freezing.” Set Tab freezing to Disabled to be sure Edge doesn’t freeze tabs as a more aggressive alternative to sleeping. - Confirm by playing media in a tab, leaving it for 30 minutes, switching back. The media should still be playing.
- To save some resources: enable Efficiency mode at the top of the System and Performance settings instead. It reduces resource use without unloading tabs.
The trade-off: each open tab consumes RAM even when unused. Old PCs and low-RAM laptops may see Edge become sluggish with many tabs. Use this only on systems with 16 GB+ RAM.
How to verify the fix worked
- Open a streaming site (YouTube, Spotify). Start playback. Switch to another tab and wait 10+ minutes.
- Switch back to the streaming tab. The media should still be playing without interruption.
- In Edge, check the tab’s favicon — it should not have the “Z” (sleeping) icon overlay.
- Open Task Manager → Processes. Edge processes for sleeping tabs typically drop to ~5 MB RAM each; awake tabs use more (100+ MB for a video tab). The streaming tab should be using normal active-tab memory.
If none of these work
If the streaming tab pauses despite being on the exclusion list, the cause may be Edge’s memory-saver mode rather than Sleeping Tabs. Disable Efficiency Mode: Settings → System and performance → Efficiency mode → toggle Off. Efficiency Mode throttles all background tabs regardless of Sleeping Tabs settings. Disable Hardware Acceleration toggle: in Settings → System and performance, toggle Hardware Acceleration off and on once to reset GPU-side decoding state. Check Windows background app restrictions: Settings → System → Power & battery → Battery saver can throttle background activity on battery; switch to AC power or disable Battery Saver while listening. For Spotify Web Player specifically, switching to the desktop Spotify app eliminates browser-throttling issues entirely — the app runs as a separate process and isn’t affected by Edge’s tab management.
Bottom line: Add streaming domains to the “Never put these sites to sleep” list. Targeted exclusions keep Edge’s memory benefits while ensuring your audio and video don’t cut out.