5 ms·
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 th
by BizarreByte 4y ago
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.
It won’t be the right choice in all cases, but it’s a great option in many.
- throwawaymaths 4y agoIt seems such a waste... You're chucking all that cryptography (ssl, encrypted cookies) away only to be redone every. single. Dom change
- deleted 4y ago[deleted]
- movedx 4y agoHuh? 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?
- devin 4y agoIt’s fine to use SSL interchangeably with TLS IMO. It’s still called OpenSSL.
- movedx 4y agoI suppose, but it's not really that big of an effort to just use the correct term for the correct version of the technology.
- throwawaymaths 4y agoThe certs are generally called SSL certs, not tls certs, too.
- movedx 4y ago> AWS Certificate Manager - Provision and manage SSL/TLS certificates with AWS services and connected resources Both, I guess.
- throwawaymaths 4y agoBy 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.
- dan1234 4y agoIsn’t that mitigated with TLS session resumption and TLS 1.3’s 0-RTT?
- kaba0 4y agoHow 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.
- throwawaymaths 4y agoIt'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
- amelius 4y ago> but of course it comes down to how well your backend is written Also the latency of your connection matters.
- BizarreByte 4y agoI 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.