I don’t want text to be unloaded from pages because then I can’t see all the results on the CTRL F box. This happens on Discourse forums and New New Reddit (its too bad they removed the 2018 redesign).

  • computergeek125@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    24 days ago

    I get what you’re trying to get at here - but counterpoint: a lot of sites offer very long or infinitely scrolling pages. Getting rid of stuff you’ve scrolled past or wont scroll to for a while makes the page not a memory leak. So specifically for Discourse, New Reddit, Discord, Facebook, Twitter, Bluesky, and all those family of pages, if you do manage to succeed you will turn the page into a memory leak. And it’s going to lag your renderer if those objects aren’t unloaded.

  • silly goose meekah@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    24 days ago

    I doubt it. The elements being added/removed is handled by JS, not your browser, so your browser can’t influence the behavior of that.

    You might be able to write some JS that searches the data in memory directly, rather than searching the visual representation that your browser displays.