Hacker News new | ask | show | jobs
by sshine 2690 days ago
SPA? SSR?
3 comments

SPA = Single Page App SSR = Server Side Rendered

SPAs run in the browser, therefore they must be written in JavaScript (or something that compiles to it.)

SPAs have the drawback of having to load a bunch of JavaScript before rendering anything, so the initial page load tends to be slow. Next.js gets around this by performing SSR for the initial page view, and then you're already looking at that page while all of the JS loads to render subsequent pages.

The term 'SPA' is a little outdated - since HTML5 history (which is nearly a decade old now) most 'SPAs' are actually multiple pages.

'web apps' is better.

They stand for Single Page Application (client side) and Server Side Rendering (which makes a JS app render more like a normal server side page for the client) respectively.
single-page-app, server-side-rendering