Introducing Sleeping Tabs Experiment: Improving Memory Usage in Microsoft Edge

Microsoft

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 devicesMedian 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 devicesAverage 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.

gif of several tabs open, with one fading to sleep, and 7 other tabs also fadinggif of several tabs open, with one fading to sleep, and 7 other tabs also fading

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
yeah and mine is set for immediately.

Dennis5mile

@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.

 

@Eleanor_Huynh

 

 

Ok, sent with screenshot and an attached picture and all the diagnostic data.. Picture shows that even though the tabs do not grey out they do show hover message "This tab is sleeping to save resources"

Not greying out tabs 2020-12-02 170441.jpg

Dennis5mile

@Eleanor_Huynh @YgorCortes @raimond2 

You can now Force tabs to go to sleep (manually put them to sleep)

here is how

https://techcommunity.microsoft.com/t5/discussions/great-new-features-tabs-groups-auto-create-tab-gr...

 

Microsoft Edge Version 89.0.722.0 (Official build) canary (64-bit)

Could Shift+click on the "X" for a tab be a sleep tab shortcut?
As of Canary Version 89.0.734.0 (Official build) canary (64-bit), sleeping tabs ARE once again greying out when they go to sleep.. It has been fixed... :D

Thanks Team/ @Eleanor_Huynh

Dennis5mile
Yup, I'm also happy it's fixed on latest canary ^^

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. 

First of all it should be possible to post e-mail address to be able to go to sleep, snooze!

@knkblr2020 


@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?

@pbresch1outlookcom 


@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?

This is a great feature. I would like to know if it will be enabled by default when V88 goes to stable. Also for this feature and others (e.g. startup settings etc..) enterprises need a way to set a recommended setting after installation/launch. For example I want the default to be enabled with 30 minutes and I want the user to be able to disable the setting or change the sleep time per their preference. This is not possible as far as I can tell. We can only enforce it or set recommended setting for browser that has never been launched.

@DugTan 

just installed Edge stable version 88.0.705.50

 

it's not enabled for me but the flag is there to activate it manually

edge://flags/#edge-sleeping-tabs

@Eleanor_Huynh Anything that reduces energy waste is a good thing, regardless of performance improvements.  Thanks!!

@HotCakeX  I also installed Edge stable version 88.0.705.50.   I used Group Policies to Enable Sleeping Tabs and a 15 minute inactivity rule.   I verified it is in the Edge://Policy, but it will NOT trigger unless I enable it via Edge://Flags.   

 

Am I missing something?   Users should not have to enable it via Flags if I am managing it via GPOs.

if it's not enabled by default then you can wait till it becomes available on its own. must be a controlled rollout.

@JohnTwilley 

Hello John, have checked this at my company some minutes ago (with the 5 minutes sleeping rule) and it worked perfecly.

Maybe it is, how @HotCakeX wrote.

 

The sleeping tabs do not free up VRAM on the GPU. That resource is far more constrained on modern computers than RAM. As such, this feature serves no meaningful purpose for me, unfortunately. :(