Discard a background tab if its memory usage ... grayed out on Firefox 131
hey,
this feature is still grayed out in latest Firefox 131, Im not sure why, how do I enable performance.memory?
also would it be possible to add a different timer for high RAM usage pages? like 5 minutes while everything else has 25 minutes?
The documentation says: "This feature is only available if your browser supports the performance.memory API." 🤔
According to Mozilla, performance.memory is not supported in Firefox, is deprecated in general, and there is a newer API called measureUserAgentSpecificMemory() aiming to replace it which... seems not to be supported in Firefox either. 😞
It looks like there was some effort to implement this in 2018, which was abandoned due to security concerns. Not sure if any newer alternatives exist. 🤷♂️ if anyone knows of one or has an idea, please share here!
For anyone else interested, I've learned of some built-in Firefox browser settings which can apparently handle this:
- https://superuser.com/a/1813361/91435
- https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02