Re:ShowHN: Htmz – a low power tool for HTML
by gedw99 on Tuesday February 20, 2024 @01:45PM
(#39445130)
I saw a htmx demo where the first request loaded the whole page to the browser and also synchronously loaded the code on the server into the browsers service worker.
The next request hits the service worker and then gets any json from the server ( if not cached ) and returns the html fragment.
It uses htmx .
I thought it was a nice have your cake and eat it too
Re:ShowHN: Htmz – a low power tool for HTML
by lsferreira42 on Tuesday February 20, 2024 @01:47PM
(#39445165)
Hello, how do you do those drawings in this post?
https://htmx.org/essays/when-to-use-hypermedia/
Things that involve a lot of events that need to be handled quickly are not a good fit for hypermedia. Sometimes you can have a rich island inside hypermedia though (e.g. a rich text editor w/ autocomplete, etc) so long at is triggers events and offers form participation. Two common examples I give are google maps and google sheets. Those would be difficult to do well in htmx. (But the settings pages for them might be a good use case for it)