Hacker News new | ask | show | jobs
by evilduck 1535 days ago
At the risk of sounding rude, what you're describing has been the status quo for data-heavy SPA scenarios for a couple years. NextJS, NuxtJS, Angular Universal, Gatsby, they all allow you to preload data into a server side render and then let the client side JS take over on demand.
1 comments

Have you actually had a look at Rails 7 with Turbo? It's nothing like what you're describing with NextJS etc. in that it aims to keep Javascript to an absolute minimum.
Yes, they’re sending HTML chunks over the wire. It’s the same end result though, except you’re still not exempted from learning JS.
It puts rendering back on the server where it belongs. The JS is minimal.
I’ve seen garbage and exemplary sites produced with both methods. Rendering HTML with data hydrated server side and assembling it with a library client side vs rendering JSON and generating the HTML client side is a weird religious stance to take.