Hacker News new | ask | show | jobs
by ehayes 1941 days ago
Turbo[links], Stimulus, etc. ARE non-blocking background updates. It's HTML over the wire instead of JSON. [1] I don't think this is what you think it is.

[1] https://hotwire.dev/

1 comments

since when is HTML lighter than JSON?! this use case was what propelled JSON into the mainstream.
The argument is that it is lighter for the device just to receive static HTML, than it is for the device to receive JSON and build HTML templates.
The idea is that HTML is just slightly heavier but the advantage is you can render it on the server and don't need all that middleware and serialization layer.