Forum Discussion
Introducing Sleeping Tabs Experiment: Improving Memory Usage in Microsoft Edge
Note: We are in the process of deploying this feature, so it may be a little while before you see it in your respective channel and build.
To improve memory and CPU utilization of the browser, we've developed a feature called sleeping tabs.
Early internal testing of devices with sleeping tabs has shown a median memory usage reduction of 26% for Microsoft Edge. Our internal testing has also shown that a normal background tab uses 29% more CPU for Microsoft Edge than a sleeping tab. These resource savings should result in excellent battery savings. Although individual device performance varies depending on configuration and usage, we expect the decrease in resource and battery usage to create a better browsing experience for users.
Median memory usage of Microsoft Edge based on performance data aggregated across ~13000 devices
Average CPU usage of Microsoft Edge based on performance data aggregated across ~13000 devices
Sleeping tabs builds upon the core of Chromium’s “freezing” technology. Freezing pauses a tab’s script timers to minimize resource usage. A sleeping tab resumes automatically when clicked, which is different than discarded tabs, which require the page to fully be reloaded.
We built upon the freezing technology to create sleeping tabs. This feature allows inactive background tabs to “go to sleep,” releasing system resources after a set amount of time. These resources include both memory and CPU and can be used for new or existing tabs or other applications running on your device.
By default, we’ve set tabs to go to sleep after two hours of inactivity. If two hours isn’t right for you, you can choose a different time interval in edge://settings/system. Tabs that are asleep will fade to let you know they’ve released resources. To resume a sleeping tab, click on it like a normal tab. The tab will un-fade and your content will be there immediately. You can also add sites you never want to sleep to a block list in Settings.
With this technology, it is possible that some sites may not work as expected after they go to sleep. We have built heuristics to detect these scenarios and prevent those tabs from sleeping to keep you in your flow. We are eager to get your feedback on sleeping tabs. If you experience a compat issue, please refresh the page and let us know through Microsoft Edge by pressing Shift+Alt+I on a Windows device or going to Settings and more … > Help and feedback > Send feedback.
Sleeping tabs will be coming soon to Canary and Dev Channels [87.0.649.0]. If you see the sleeping tabs feature while browsing, please join us here on the Microsoft Edge Insider forums or Twitter to discuss your experience, or send us your feedback through the browser! If you have any questions, see our FAQ or reach out to us. We hope you enjoy this exciting new feature and look forward to hearing from you!
- The Microsoft Edge Product Team
214 Replies
- DazzaLCopper Contributor
Eleanor_Huynh really good but needs the ability to filter not on whole domains, but on sub patterns too. For example, in my corporate network, we have a portal that holds all our developer tools like confluence, jira, on-prem bitbucket etc like mycorp.com/jira, mycorp.com/wiki mycorp.com/bitbucket. i don't want to suppress all of this from sleeping but I really don't want my agile board that lives under JIRA to sleep - as it takes a long time to reload!
- JoaopiresCopper Contributor
All,
this is a great upgrade for Edge... thanks for all involved to make this possible.
I have come across an issue when trying to keep Gmail & Whatsapp Tabs "awake" and running non-stop. Although I have included them into the "Block List" from sleeping, they still go to sleep and I can't avoid them from missing refreshing automatically.
As I result I don't get notification anymore that I received a new Whatsapp message or Email on Gmail browser and the tab shows inactive/sleeping after 2 hours.
Anyone has observed same problems?
- DMallCopper Contributor
Eleanor_Huynh I like the thought behind this. However, my ram usage is not declining as much as the diagram states. There is this app called OneTab. Maybe look into that software and see how they do it but without collapsing all tabs to one. That would be great!
- etiennex9Copper ContributorReally cool feature!
However, it would be nice if there was a way to prevent pinned tabs from sleeping. A simple checkbox beside the "Never put these sites to sleep" would be enough. - foobar12Copper Contributor
Eleanor_Huynh can you put a slidingbar instead of drop down for inactivity instead of def 2hrs. b) i see the specify different sleeping bar is per site/tab -instead i want one for whole tabs -adjustable time
foobar12 wrote:Eleanor_Huynh can you put a slidingbar instead of drop down for inactivity instead of def 2hrs. b) i see the specify different sleeping bar is per site/tab -instead i want one for whole tabs -adjustable time
Love the idea! a slider or sliding bar for selecting the sleeping tabs timer would be good.
- George-SamuelCopper Contributor
I just love this capability from the MS Edge team, very thoughtful
,
I am enjoying this new feature.
- Yannara100Copper Contributor
- Alex_TasiCopper Contributor
The idea is good/perfect, but it does not work. There is no way to force a tab to go to sleep (Being a single tab command or a global command), and there are tons of pages not being used up and running, eating up memory... I changed configuration to 5 minutes, tried also 15 minutes, but got the same results. Not all pages sleep. (Edge running version 88.0.705.74 (64 bits))
- Spoiler
Alex_Tasi wrote:The idea is good/perfect, but it does not work. There is no way to force a tab to go to sleep (Being a single tab command or a global command), and there are tons of pages not being used up and running, eating up memory... I changed configuration to 5 minutes, tried also 15 minutes, but got the same results. Not all pages sleep. (Edge running version 88.0.705.74 (64 bits))
"...There is no way to force a tab to go to sleep..."
yes there is 🙂
here it is + video guide
- li_li950Copper Contributor
- Kwok_Vinn_ChanCopper Contributor
Yeah! It is okay, but have 1 "issue". My sleeping tabs never faded but when I open the tabs it loads and turns out that it is sleeping earlier. Anyway, I like it!