67 ms·
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,
by evilduck 5y 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.
- cutler 5y agoHave 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.
- evilduck 5y agoYes, they’re sending HTML chunks over the wire. It’s the same end result though, except you’re still not exempted from learning JS.
- cutler 5y agoIt puts rendering back on the server where it belongs. The JS is minimal.
- evilduck 5y agoI’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.