• bruce965@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    10 days ago

    Actually that might not have been done to deliberately disrupt your flow. Culling elements that are outside of the viewport is a technique used to reduce the amount of memory the browser consumes.

      • bruce965@lemmy.ml
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        8 days ago

        Well… that would make sense. But it’s much much easier to just do it preemptively. The browser API to check how much memory is available are quite limited afaik. Also if there are too many elements the browser will have to do more work when interacting with the page (i.e. on every rendered frame), thus wasting slightly more power and in a extreme cases even lagging.

        For what it’s worth, I, as a web developer, have done it too in a couple occasions (in my case it was absolutely necessary when working with a 10K × 10K table, way above what a browser is designed to handle).