News for hackers. Stuff that matters.
Re:Removing React.js from the codebase and adapting Htmx for... by bbg2401 on Monday July 27, 2026 @10:53AM (#49070571)
I’m not sure I follow.

SPA’s tend to require more network round trips, sometimes significantly more based on the architecture.

Re:Removing React.js from the codebase and adapting Htmx for... by Izkata on Monday July 27, 2026 @11:01AM (#49070677)
But a lot of the time they can happen in the background where the user doesn't see them, or on a part of the page the user isn't currently interacting with, preventing it from being a stop-the-world interruption.
Re:Removing React.js from the codebase and adapting Htmx for... by ko27 on Monday July 27, 2026 @11:21AM (#49070956)
It’s in the name: an MPA requires a page roundtrip for every navigation, while SPA requires a single page roundtrip. Any subsequent requests are part of the application itself and can be handled without disrupting UX.
Re:Removing React.js from the codebase and adapting Htmx for... by inigyou on Monday July 27, 2026 @12:47PM (#49072278)
An SPA still requires roundtrips, just not to load the DOM root. Most of them do more than one roundtrip per navigation, making them worse than MPA. They also break loading screens.
Re:Removing React.js from the codebase and adapting Htmx for... by Exoristos on Monday July 27, 2026 @01:20PM (#49072767)
They don't have to be that way.
Re:Removing React.js from the codebase and adapting Htmx for... by inigyou on Monday July 27, 2026 @03:29PM (#49074506)
They still are
Re:Removing React.js from the codebase and adapting Htmx for... by christophilus on Monday July 27, 2026 @01:47PM (#49073158)
An MPA can make as many queries/service requests as it needs to to render the result. Most— the vast majority of SPAs I’ve ever written, maintained, or used— do that from the client, making many requests to render the new route.

The UX for an SPA can indeed be excellent, but the average SPA is worse than the average MPA, in my opinion. It’s just much easier to break things in many subtle ways in an SPA.

Re:Removing React.js from the codebase and adapting Htmx for... by mvdtnz on Monday July 27, 2026 @11:00PM (#49078737)
Is it really your experience that SPA data fetches and refreshes are "handled without disrupting UX"? I think it's the opposite. When a page is rendered on the server it's much less likely to move around under me, forcing accidental misclicks or shifting what I'm reading off-screen at random.