HACKER Q&A
📣 ushakov

Are Single-Page-Apps Dead?


With server-side-rendering being the default option in Next.js 13, i’m curious whether SPAs are fading away…


  👤 solardev Accepted Answer ✓
Why does it have to be either or? A lot of Next is still a SPA. When you navigate between routes via Link, it's fetching JSON and rendering a diff like a SPA would. The server-side stuff is mostly for first load or if JS is disabled.

👤 aww_dang
A SPA can be built with traditional server side tech to populate the page. When the user interacts with the application the state can be updated. Isn't it still a SPA?

Never liked the JS bandwagon. Funny to see them coming full circle.


👤 matthewwolfe
I don’t see it as SPAs fading, but just the natural progression of this style of making apps/websites. People moved from a heavy server to a heavy client, and in the process realized that shipping your entire website in one bundle at first load is not very performant. Now the tooling has caught up to the point where SPAs can be split on natural boundaries so that the individual page loads are smaller.

I don’t see this as a fundamental change. Writing the actual code still feels the same more or less. It’s more the tooling that has changed what the output looks like.


👤 catfishx
They haven't completely disappeared (unfortunately), most people have discovered that they aren't the best for all sites. The hybrid solutions are a lot better, performant and accessible.