Forum Discussion
Eleanor_Huynh
Sep 23, 2020Microsoft
Sleeping tabs FAQ
What is sleeping tabs?
To improve memory and CPU utilization of the browser, we've developed a feature called sleeping tabs.
To free up resources for active tabs, new tabs, and other appl...
Fernando_Sepulveda
Jan 11, 2021Copper Contributor
Hi, Eleanor_Huynh hope you are fine.
As same as michaelketting, we have a web page (asp.net) which does regular callbacks to the server to make some background actions. After some tests, I didn't detected problems with this feature. But I am having some difficulties to solve a problem with "Discarded tabs" feature (after a discarded tab all information of our page is lost, similar reaction as youtube when you discard that page manually).
My question is, this feature (Sleeping tabs), is going to replace the "Discarded tabs" feature in the future? If not, how can I (as developer), prevent that our page is selected as discardable? michaelketting said something like apply some web-page-lock, but I didn't found documentation about that.
Greetings, thanks in advance.
As same as michaelketting, we have a web page (asp.net) which does regular callbacks to the server to make some background actions. After some tests, I didn't detected problems with this feature. But I am having some difficulties to solve a problem with "Discarded tabs" feature (after a discarded tab all information of our page is lost, similar reaction as youtube when you discard that page manually).
My question is, this feature (Sleeping tabs), is going to replace the "Discarded tabs" feature in the future? If not, how can I (as developer), prevent that our page is selected as discardable? michaelketting said something like apply some web-page-lock, but I didn't found documentation about that.
Greetings, thanks in advance.
- michaelkettingJan 27, 2021Brass Contributor
Fernando_SepulvedaThe documentation on WebLock API can be found here:
https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API
The documentation that WebLocks override sleeping tabs can be found here:
https://techcommunity.microsoft.com/t5/articles/sleeping-tabs-faq/td-p/1705434
Best regards, Michael