Re:The Future (and the Past) of the Web Is Server Side Rende...
by robertoandred on Friday February 03, 2023 @05:01PM
(#34648338)
Sounds pretty slow. At least a second before the UI responds to any action?
[ Parent
| on HN ]
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.
Re:The Future (and the Past) of the Web Is Server Side Rende...
by silver-arrow on Friday February 03, 2023 @05:34PM
(#34648746)
You for sure wouldn't want to build a spreadsheet type app with htmx because of that aspect. Many other types of web apps can benefit from the simplification of the architecture, however. And like my paging example, many times you need to go to the server anyway. But sure, like anything, I wouldn't use htmx for every situation.
Re:The Future (and the Past) of the Web Is Server Side Rende...
by silver-arrow on Friday February 03, 2023 @05:36PM
(#34648778)
True BizarreByte. I love how htmx let's you easily add animation indicators on actions, because many times it's too fast due to the small chunks coming back and getting placed so quickly in the DOM
Re:The Future (and the Past) of the Web Is Server Side Rende...
by berkle4455 on Friday February 03, 2023 @08:53PM
(#34650524)
What sort of slow backends do you work with? My PHP htmx application responds in ~30ms including network transmit. Even if you’re across an ocean it’s maybe 300ms.
Re:The Future (and the Past) of the Web Is Server Side Rende...
by b4je7d7wb on Friday February 03, 2023 @10:26PM
(#34651103)
300ms feedback on user action is unacceptable. But I read another comment saying there can be loading indicators so in that case its fine.
Re:The Future (and the Past) of the Web Is Server Side Rende...
by mixmastamyk on Friday February 03, 2023 @10:19PM
(#34651068)
Same as a javascript round trip. Can still make local-only changes if you'd like.