News for hackers. Stuff that matters.
Re:It's time for modern CSS to kill the SPA by nfw2 on Saturday July 26, 2025 @05:52PM (#44697199)
Every single action should have no perceivable latency between the action and the feedback that the action was received. You can implement that with SSR but it is clunky and also requires a lot of JS generally.
Re:It's time for modern CSS to kill the SPA by gizzlon on Sunday July 27, 2025 @03:34PM (#44703936)
> should have no perceivable latency between the action and the feedback that the action was received.

Huh, according to who? I think a small delay is totally fine.

Often better than the SPA's that tried to fix this non-problem and introduced much worse problems.

Edit: For example HN: I press update and there's a small delay.. So what? Most sites and SPA's have a much worse user experience than this.

Re:It's time for modern CSS to kill the SPA by nfw2 on Sunday July 27, 2025 @06:36PM (#44705356)
Because past delays of about 100ms, users lose the sensation of directly manipulating the page. The feel of a page is part of it's aesthetic.

Also, immediate feedback reduces anxiety and mistakes (for example duplicate submissions).

https://www.researchgate.net/publication/391230228_Cognitive...

https://www.nngroup.com/articles/response-times-3-important-...

Re:It's time for modern CSS to kill the SPA by gizzlon on Monday July 28, 2025 @04:23AM (#44708546)
Looked at the first one, and that's in a game setting? And they test 600 ms??

edit: The second one is more useful IMO. It's hard to get under 100 ms with a roundtrip, but < 300 ms should be doable, right? So you do lose the sense that you are directly manipulating data. In most cases I think that's a good trade-off. Exceptions would be things like Google docs, but that's also because it's a well made app I trust to actually sync my data without loss. Unlike most SPAs..

Re:It's time for modern CSS to kill the SPA by nfw2 on Monday July 28, 2025 @10:00PM (#44718130)
300ms for network latency both ways, with server potentially doing its own network calls for data to fulfill the request, interpolating the html, and then browser rerendering client seems like a stretch