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

@Eleanor_Huynh I had already turned it on using edge://flags and selected for immediate sleeping. Now as this feature permanently rolled out for Edge, you can't even select the time out for the same. Even changing it again from edge://flags didn't affect at all. WTH!

@Eleanor_Huynh, how are Sleeping Tabs related to the pre-sleeping tabs GPO: "Allow freezing of background tabs"? Are they interdependent?

The worst update yet@Eleanor_Huynh

 

After a few days after the update I have lost data, by rebooting the computer because of freezing up. It took nearly 5 min. to get the web sits back in service. Please take it back so my system can function normally again 

@Eleanor_Huynh  Please have an option to not use it.  I don't know a lot about using Windows 10 so please leave this off of my computer.

@vivik 


@vivik wrote:

@Eleanor_Huynh I had already turned it on using edge://flags and selected for immediate sleeping. Now as this feature permanently rolled out for Edge, you can't even select the time out for the same. Even changing it again from edge://flags didn't affect at all. WTH!


I'm checking and the flag is still available in Edge stable version 88.0.705.63

 

so just go to the flags and either set this to default or disable it: 

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

 

@JChance 


@JChance wrote:

The worst update yet

After a few days after the update I have lost data, by rebooting the computer because of freezing up. It took nearly 5 min. to get the web sits back in service. Please take it back so my system can function normally again 


Hi,

which website was it? possible to mention it so others can test it too?

 

you can also submit a feedback right from the browser itself, it will also submit additional diagnostic data that can help identify and fix the problem.

 

press Edge's (...) menu => Help and feedback => Send feedback

 

thank you

@RichardLongRichard_Lo 


@RichardLongRichard_Lo wrote:

@Eleanor_Huynh  Please have an option to not use it.  I don't know a lot about using Windows 10 so please leave this off of my computer.


Hi,

there is nothing to worry about, all you have to do is go to the settings, and click/tap on this toggle button, that's it.

 

fdfseds.png

 

insiders and lots of others have tested this feature for months to make it ready for broader rollout.

 

and by default, the time out is set to 2 Hours, which is pretty long time, I intentionally set it to 5 minutes as you can see in the screenshot.

@HotCakeX Is it possible to have a custom input for the timeout?

Say I want to make it sleep in a couple of seconds, or maybe just add some more dropdown options for it.

I know that the flag for immediate timeout is available, but why don't just make it easier for the user and add some more options right on the settings.

There is no area to enter custom input but you can request it using the feedback button on Edge.

@Eleanor_Huynh 

 

The sleeping tabs have been driving me crazy the last months. I use a program for power control of electricity in my home to warn me of over-usage that is billed yearly from the electricity company. Every kWh electricity used in one hour adds 100 usd to my bill so i really need my program to work all the time! I had tried everything in the Edge settings to disable sleeping tabs but it never solved the horrible problem. The sleeping tabs have already added 300 usd to my electicity fee!

 

Today i see there is now a possibility to control the sleeping tabs and to add pages to never sleep. I see the example url *.domain.com but my program runs in localhost http://localhost:1880/ui/#!/1?socketid=ELP63alysfIYYMAcAABM#%2F0. So i tried to add it to the exeption list and will see if it now til work reliable if i decide to use another tab for browsing so i dont need to use the computer only for my program but for other browsing at the same time without "killing" my warnings i need so much.

My program is made in Node-Red and Node-Red runs locally in my computer. The display is Web user interface in Node-red and Microsoft Edge is the browser displaying the control panel and plays voice warning messages. So Edge must never ever go to sleep when my program is running! Edge even put my important electricity control panel page to sleep when running as Edge app!

 

Skjermbilde (47).png

 

Video of the working program at: https://youtu.be/GQTypW9Wxrg

 

 

 

 

 

@sungtroll 

 

Spoiler

@sungtroll wrote:

@Eleanor_Huynh 

 

The sleeping tabs have been driving me crazy the last months. I use a program for power control of electricity in my home to warn me of over-usage that is billed yearly from the electricity company. Every kWh electricity used in one hour adds 100 usd to my bill so i really need my program to work all the time! I had tried everything in the Edge settings to disable sleeping tabs but it never solved the horrible problem. The sleeping tabs have already added 300 usd to my electicity fee!

 

Today i see there is now a possibility to control the sleeping tabs and to add pages to never sleep. I see the example url *.domain.com but my program runs in localhost http://localhost:1880/ui/#!/1?socketid=ELP63alysfIYYMAcAABM#%2F0. So i tried to add it to the exeption list and will see if it now til work reliable if i decide to use another tab for browsing so i dont need to use the computer only for my program but for other browsing at the same time without "killing" my warnings i need so much.

My program is made in Node-Red and Node-Red runs locally in my computer. The display is Web user interface in Node-red and Microsoft Edge is the browser displaying the control panel and plays voice warning messages. So Edge must never ever go to sleep when my program is running! Edge even put my important electricity control panel page to sleep when running as Edge app!

 

Skjermbilde (47).png

 

Video of the working program at: https://youtu.be/GQTypW9Wxrg

 

 

 

 

 


You just saw that exception list for sleeping tabs, but it has been Always there, since the beginning.

 

edge://settings/system

all you had to do is to go to settings and search for sleeping tabs. all of that could be easily prevented.

 

Add this to the list: "Never put these sites to sleep"

[*.]localhost

 

No, it has not always been there. This is snapshot from today from Edge Versjon 87.0.664.66 (Offisiell build) (64-biters). I had the same problem with Edge beta and ever with chrome. The old Internet explorer worked always but with rendering problems.

 

sungtroll_0-1612970254299.png

 

@sungtroll 

What I meant is that, when sleeping tabs first appeared in Edge, it also had the ability to exclude certain domains.

obviously sleeping tabs feature came out recently and wasn't there from the beginning but when it did come out, it had the exclusion ability.

 

also version 87.0.664.66 that you mentioned is outdated, the latest stable version is 88.0.705.63 (Official build) (64-bit)

 

https://www.microsoft.com/en-us/edge/business/download

 

Updated to latest build, and still no sign of the setting. It appears only in edge beta.

sungtroll_0-1612970879455.png

 

sungtroll_1-1612971022529.png

 

Below is the settings in Beta Edge. Huge difference from the non beta build.

sungtroll_2-1612971088307.png

 

 

@sungtroll 

@Eleanor_Huynh this is a great feature! Thank you :) 

@HotCakeX I don't know if you understood my concern. Tried doing that but obviously it won't change anything.. I need sleep tabs to immediately have affect on every opened tabs without any delay or time-out as it used to be before the update came.

hi after enable sleeping tabs , it seems it doen't work because none of tabs turned gray and there is no "this tab is sleeping" pop up in my tabs

@sungtroll try changing your browser language to English, seems like it's not available on the Norwegian language yet, or else. The team should fix this, but I saw you're using the beta and it's available, so I guess it's about to come.

lang.png

@flumi 

 

The settings only appears in edge beta and in both english and norwegian language. In standard edge the setting is missing in both english and norwegian.

 

Here is the setting in edge beta in norwegian language

 

sungtroll_0-1613063130954.png

 

@Eleanor_Huyn I really love this feature, but I would like to access it by a shortcut, so I can sleep tabs I am not using without having to wait that the browser does it. Also, I would like that the tab only awakes again when I press the shortcut, so even if I enter to the tab, it stays slept