News for hackers. Stuff that matters.
Re:You Shouldn't Start with an SPA by acdha on Friday February 02, 2024 @02:13PM (#39232868)
> 2. Less traffic in data-rich apps (even taking into account compression, HTML is heavier than JSON and not just due to syntax overhead - consider all those page headers, footers and other common parts).

I’ve very rarely seen this not be significantly skewed in the other direction. The stuff you mentioned is tiny and compresses well, and unlike the many megabytes of JavaScript almost all SPAs ship it doesn’t block rendering.

> 3. Better UX for slow networks: even in countries with 5G coverage there are still a lot of corners where your device will struggle to connect. SPA can auto-retry,

SPAs are far less likely to get to the point where they can display that spinner on a marginal network. Any time I have had coverage, JavaScript-heavy sites are notably the worst experience especially because unlike SSR a reload only works if you have the 5% of SPA developers who correctly implemented state handling.

Re:You Shouldn't Start with an SPA by rokkitmensch on Friday February 02, 2024 @10:56PM (#39237414)
Amen. LCP and TTI are the only things that matter. Fix your render loops, kids.