|
|
|
|
|
by WuxiFingerHold
406 days ago
|
|
Yes, pure old school SPAs have at least one additional roundtrip on the first visit of the site: 1. Fetch index.html
2. Fetch js, css and other assets
3. Load personalized data (json) But usually step 1 and 2 are served from a cdn, so very fast. On subsequent requests, 1 and 2 are usually served from the browser cache, so extremely fast. SSR is usually not faster. Most often slower. You can check yourself in your browser dev tools (network tab): SPA: https://www.solidjs.com/ vs. Poster child SSR: https://nextjs.org/ So much complexity and effort in the nextjs app, but so much slower. |
|
That's not really SSR though, it's partial SSR but then hydrated into a client-side React app, so a SPA. If you really want to compare try an htmx page.