The feature is called Tab Unloading, and weirdly enough they made it not easy to access despite its usefulness.

You basically have to type about:unloads in the address bar and hit enter. If you then click on “Unload”, it will put the least used tabs to sleep. If you keep clicking that button until it’s greyed out, you’ll have unloaded all your tabs from memory.

This feature is handy if you want to temporarily switch to something that is memory hungry without having to close your 100 tabs.

    • From what I understand it basically just saves the minimal state possible (URL, form inputs), which is lighter than keeping all the rendering details in memory, so maybe that minimal representation still stays in RAM as its footprint would be negligible.

      • Belazor@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        It doesn’t save form inputs because when you click a suspended/unloaded tab, it reloads the whole page. Everything unsaved on that page is lost.

        I really hope some day Firefox will work the way you say, though.

        • AlmightySnoo 🐢🇮🇱🇺🇦@lemmy.worldOP
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          That’s weird then, because this says:

          The tab’s scroll position and form data are restored just like when the browser is restarted with the restore previous windows browser option.

          If it doesn’t do that then I’d say it’s a bug?

    • kevincox
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      It gets thrown away. When you go back to the tab it will effectively reload.

      (It will attempt to save some extra information such as scroll position and form inputs but this isn’t 100% reliable so I would treat it as a nice-to-have not something to rely on.)