HTMX is awesome and here's why

preview_player
Показать описание
What if you could supercharge your HTML with AJAX requests, CSS transitions, and web socket capabilities directly from HTML attributes? That's what HTMX can do for you. We're discussing its benefits and drawbacks in this episode.

Highlights
00:00 Introduction to HTMX
01:16 Triggers and Functionality
02:06 Benefits and Use Cases
03:26 Making static WordPress interactive
04:19 Modern JavaScript Frameworks vs HTMX
05:25 Areas for Improvement
08:15 Final Thoughts

Links
Рекомендации по теме
Комментарии
Автор

i think they want to drop that IE11 nonsense in the next major release. but you call 14Kb "a lot"? what? doesn't all that crap js nonsense they nowadays run in the client easily sum up to megabytes?

oefzdegoeggl
Автор

The issue of 'state' of the current 'conversation' is one of the major complexities between 'client' and 'server'. with HTMX the 'server' can keep an upto date 'state' and the 'client' doesn't need to keep track of so much 'state'.
This is how the 'interactive' world used to be many decades ago. The 'clients' were 'dumb' and the server had to keep track of all 'state'.
Now, you have the best of both worlds. The 'clients' are really 'clever' and the 'server' still has to keep track of 'state'. Now it can be done incrementally and quickly.
Nice compromise. :)

ryanqvincent
Автор

How do you even think about supporting IE for more than ten milliseconds?

nbb
Автор

Python's documentation is impeccable. HTMX must make its documentation heaps better than what it is now to become popular. Make tutorials geared to users of all levels. If not, it is just a product of the JS mindset.

Observer-a
Автор

I just captured his concerns and Im addressing with my own library

kuhaniresti
Автор

My library, "html-form" on npm solves his issues. 2.2 kB minified/gzipped. No need for hydration as it just adds an event listener to the document for form submission. I do use custom elements to handle things my lib doesn't handle. But it works pretty well. I don't know how you can ask for anything smaller. I've been able to make a PWA/SPA with it. It's amazing how flexible this pattern is. I've even made a progressively enhanced MPA with it. It would be a good use for micro front ends too as it works flawlessly.

dovh
Автор

Assembling partials server side was done roughly 3 decades ago.
jQuery enabled that client side roughly 2 decades back.

There was a reason why client side libraries evolved, but kids have to reinvent the wheel every 2 decades or so just to marvel at their own ingenuity.

tonianzlovar
Автор

I personally don't like putting front-facing code on a back-end.

NexusGamingRadical
Автор

Another library with less coding and less thinking.

oluwaseyisubair
Автор

I cant stand listening to a person talk technology only to hear “i feel like…”

He has no understanding of the impact a 14kb payload would have and it’s obvious - oh but because he FEELS LIKE it’s alot well uh that must be a con.

It’s just so ignorant, you have all the time to make videos and you cant spend some time studying your craft; this is how we get lopsided ecosystems.

Read books and docs yall, YouTube is not for learning.

pookiepats
Автор

still have no use for it, jquery with fetch() and load() do everything

Nodsaibot