• Alberat@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 day ago

    it’s frustrating because webpages were really functional without this problem a decade ago. i don’t know why links jump around today. is it because it’s cheaper to let the client figure out what content they need instead of using server-side computation?

    • freebee@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Because frontend webdevelopers use some very large framework to make things “look nicer” and don’t care about resource optimisation? They do the opposite just for some silly colouring effect, shade etc. The old ugly stuff was a lot smaller and quicker to load.

      • Alberat@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        yeah, no, im with you on that point where frontend developers don’t care. but why did that framework catch on in the first place? we used to use php where the server would grab all the data relevant to your account and convert it into one html page. but now it seems the user’s laptop is tasked with pulling each element of their own website. maybe it’s easier to scale? like you can have the user’s data split across different servers and not require any communication between servers on the backend?

  • Vonmiir@lemmy.zip
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 day ago

    It’s called Cumulative Layout Shift (CLS). A respectable website would monitor this before and after making changes but most don’t and of course there are some which know that they benefit from it happening.

    https://web.dev/articles/cls

  • Phil_in_here@lemmy.ca
    link
    fedilink
    English
    arrow-up
    46
    ·
    2 days ago

    What’s worse is when you expect it, so you wait a second, and it still hasn’t loaded, so you click and the instant you click it shifts to an ad.

  • zout@fedia.io
    link
    fedilink
    arrow-up
    46
    ·
    2 days ago

    Isn’t this a known dark pattern? Not so mildly infuriating for me.

        • hector@lemmy.today
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 days ago

          When the part of the page you select just so happens to be an advertisement that makes them more money, I wouldn’t give them the benefit of the doubt.

          I wish there was a way to set up your device to not switch locations, like if it shows you something you can select, it builds the rest that is loading around that, to pick one locations and stick with it, or barring that, to discount selections made a fraction of a second before it changes position maybe.

          • bleistift2@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 days ago

            discount selections made a fraction of a second before it changes position maybe.

            This. I don’t understand why the hit areas for popups are hot immediately. That also applies to notifications on phones or new windows on desktop computers.

  • LSNLDN@slrpnk.net
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    This but it’s when I search for something like an app on my phone and the results are still loading I HATE IT