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
- pbresch1outlookcomCopper ContributorFirst of all it should be possible to post e-mail address to be able to go to sleep, snooze!
pbresch1outlookcom wrote:
First of all it should be possible to post e-mail address to be able to go to sleep, snooze!What does Email address have to do with sleeping tabs?
- knkblr2020Copper Contributor
But still it is not working on Edge . Even I set specified time of 15 minutes
Rest of the tabs are not all sleeps instead are active mode only . Also enabled the flags on Edge even though it is not functioning.
knkblr2020 wrote:But still it is not working on Edge . Even I set specified time of 15 minutes
Rest of the tabs are not all sleeps instead are active mode only . Also enabled the flags on Edge even though it is not functioning.Which Edge version?
- htmlcssjsCopper ContributorCould Shift+click on the "X" for a tab be a sleep tab shortcut?
Eleanor_Huynh YgorCortes raimond2
You can now Force tabs to go to sleep (manually put them to sleep)
here is how
Microsoft Edge Version 89.0.722.0 (Official build) canary (64-bit)
- Dennis5mileSilver ContributorSleeping tabs are no longer getting greyed out.... Is this intentional?
Version 89.0.720.0 (Official build) canary (64-bit)
Dennis5mile
Dennis5mile wrote:
Sleeping tabs are no longer getting greyed out.... Is this intentional?
Version 89.0.720.0 (Official build) canary (64-bit)
Dennis5mileI noticed that too, at least from a week ago on Canary.
- Eleanor_Huynh
Microsoft
HotCakeX Dennis5mile Thanks for sharing this! May I ask you to submit this feedback through Edge by clicking Shift+Alt+I or “…” menu > Help and feedback > Send feedback). Please include the issue details and the words “IntroducingSleepingTabsExperiment”. Once you've submitted it, please let me know here and I can look into this. Many thanks in advance for letting us know and helping us investigate.
- KamSilver Contributor
Dennis5mileCheck edge://settings/system and see if your timeframe of that tab is more than the timeout you've set. Good luck 🙂
- Spoiler
Kam wrote:
Dennis5mileCheck edge://settings/system and see if your timeframe pf that tab is more than the timeout you've set. Good luck 🙂It's not that. mine is set to 5 mins (lowest) and still no tab becomes grey or sleeps.
- htmlcssjsCopper Contributor
You can enable it now in edge://flags by searching for "sleep" and turning it on.
I haven't found any mention of PWA when it comes to Sleeping tabs, and I kinda think the answer is no, but to be sure I wanna ask, does sleeping tabs feature affect PWA windows that are open?
- Eleanor_Huynh
Microsoft
HotCakeX, great question! If PWAs are hidden, (i.e. occluded or minimized), they can go to sleep. Hope that helps!
- Thank you 🙂
- raimond2Brass Contributor
Eleanor_HuynhIs there a way to import my current Edge profile into the Dev Channel release and vice versa?
- raimond2Brass Contributor
Thank you, will this also import all of my open tabs from Edge legacy into Edge Dev?
- MarsMasIron Contributor
Eleanor_Huynh it does not work fine for me, with many tabs opening, memory goes ups and down frequently while freezing my edge browser from time to time. i went back to my stable edge it manage my memory better.
- Eleanor_Huynh
Microsoft
MarsMas Thank you so much for this feedback. We are always looking to improve our features. If you are still finding this, feel free to submit feedback to us through in-browser feedback tool (Shift+Alt+I or “…” menu > Help and feedback > Send feedback). Please include the string “IntroducingSleepingTabsExperiment” so we can connect it back your post here. Thank you in advance!
- raimond2Brass Contributor
Eleanor_HuynhRE: "A sleeping tab resumes automatically when clicked, which is different than discarded tabs, which require the page to fully be reloaded."
Is there a discarded tabs feature also in Edge? If not I'd suggest a further 'power state' option that causes tabs to enter the discarded state after a set time in sleep state to save even more system resources.
- Eleanor_Huynh
Microsoft
raimond2 Thanks for this feedback! There are discarded tabs today also in Edge. Please let us know if you have any more questions we can help with. Cheers!