Most SPAs seem to only serve one or two ‘soft’ navigations after the initial ‘hard’ navigation (the one that loads the entire app upfront), meaning the cost is not being amortized across many requests, negating the whole point of the architecture.

  • madnificent@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    1 day ago

    There is a distinction between an app and a site. An application has many partial state updates. Two updates is uncommon for an app. Way different for a website where people ideally land on the right page from a search engine. There is a place for an SPA but it’s not everything.

    We tend to stick with an SPA even for things which are mainly reads because we’re more efficient in a single tech stack. Sadly we don’t have big tech budgets to do everything. In theory the JS SPA backend can simply run in the backend if there’s no need for an SPA. I had thought hydration and caching to have gotten way better by now but there’s still a good way to go.

  • Feyd@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    24 hours ago

    Just answering the title without looking deeper. Yes, absolutely. SPA has it’s place but almost every site that exists would be better off using old school server side frameworks. And instead of realizing the mistake the industry has doubled down and made these insane SSR SPA frameworks that are the worst of all worlds

  • chrash0@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    my opinion is that the browser in general for rich front ends is the mistake, but i know i’m the minority

  • JakenVeina@midwest.social
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    1 day ago

    No. Turning things into SPAs that should have been simple websites has been. Also developing SPAs in JS.