News for hackers. Stuff that matters.
Re:The Future (and the Past) of the Web Is Server Side Rende... by BizarreByte on Friday February 03, 2023 @05:33PM (#34648734)
It’s much faster than that in practice, but of course it comes down to how well your backend is written. I’ve been using HTMX lately and I can blink and miss the UI updates.

I wish I had numbers, but in my experience it’s far better than you’d expect. Basically take the length of a REST call you’d have to make anyway and add a few milliseconds for the rendering.

Re:The Future (and the Past) of the Web Is Server Side Rende... by throwawaymaths on Friday February 03, 2023 @08:13PM (#34650212)
It seems such a waste... You're chucking all that cryptography (ssl, encrypted cookies) away only to be redone every. single. Dom change
Re:The Future (and the Past) of the Web Is Server Side Rende... by movedx on Friday February 03, 2023 @09:09PM (#34650642)
Huh? How does HTMLx "chuck" away SSL (you meant TLS, right? I hope you're not using SSL) and encrypted cookies?

How about you try it and see?

Re:The Future (and the Past) of the Web Is Server Side Rende... by devin on Friday February 03, 2023 @09:40PM (#34650819)
It’s fine to use SSL interchangeably with TLS IMO. It’s still called OpenSSL.
Re:The Future (and the Past) of the Web Is Server Side Rende... by movedx on Saturday February 04, 2023 @12:26AM (#34651809)
I suppose, but it's not really that big of an effort to just use the correct term for the correct version of the technology.
Re:The Future (and the Past) of the Web Is Server Side Rende... by throwawaymaths on Saturday February 04, 2023 @01:22AM (#34652087)
The certs are generally called SSL certs, not tls certs, too.
Re:The Future (and the Past) of the Web Is Server Side Rende... by movedx on Monday February 06, 2023 @09:30PM (#34687856)
> AWS Certificate Manager - Provision and manage SSL/TLS certificates with AWS services and connected resources

Both, I guess.

Re:The Future (and the Past) of the Web Is Server Side Rende... by throwawaymaths on Saturday February 04, 2023 @01:20AM (#34652075)
By chuck away I mean all those processor cycles to perform cryptographic verification... And then throw away the result because you have to do it on the next connect anyways

And I have written a library that does the full SSL handshake/upgrade cycle off of tcp sockets, and managed my own private CA, so I'm not a total idiot.

Re:The Future (and the Past) of the Web Is Server Side Rende... by dan1234 on Saturday February 04, 2023 @02:54AM (#34652599)
Isn’t that mitigated with TLS session resumption and TLS 1.3’s 0-RTT?
Re:The Future (and the Past) of the Web Is Server Side Rende... by kaba0 on Saturday February 04, 2023 @03:08AM (#34652673)
How is that different than all the other CSR SPAs that do a REST call on every button press as well? They do almost the same amount of work, and will also “throw away” the results.
Re:The Future (and the Past) of the Web Is Server Side Rende... by throwawaymaths on Saturday February 04, 2023 @07:01AM (#34653817)
It's not, but there are server side options (topic of op) where it's a websocket. I believe HTMx supports ws too, but gp was only talking about RESTful round-trips
Re:The Future (and the Past) of the Web Is Server Side Rende... by amelius on Friday February 03, 2023 @08:25PM (#34650315)
> but of course it comes down to how well your backend is written

Also the latency of your connection matters.

Re:The Future (and the Past) of the Web Is Server Side Rende... by BizarreByte on Friday February 03, 2023 @09:32PM (#34650773)
I thought frontend devs stopped caring about bad connections years ago? ;)

HTMX is fine with showing loading icons are the like if needed, but yah, connection latency is going to have an effect.