News for hackers. Stuff that matters.
Re:A Real World React – Htmx Port by hiyer on Sunday October 16, 2022 @08:33AM (#33223104)
Would this not be a concern for React (and other SPAs) as well? I'm no UI expert, but from what I've seen of React/Vue UIs in previous companies, you still have to hit the server to get the data, though not the UI components. The difference in size between just the data in, say, JSON, and the entire HTML component would be very minimal considering both would be compressed by the server before sending.
Re:A Real World React – Htmx Port by ec109685 on Sunday October 16, 2022 @10:48AM (#33224010)
There are frameworks that let you apply changes locally and (optimistically) instantly update the ui and asynchronously update server state. That is a win.

On the other hand, I have seen implementations of spa “pages” that move from a single fetch of html to multiple round trips of dependent API calls, ballooning latency.