HTMX vs. jQuery for DOM / Web Scripting

  Рет қаралды 6,032

BugBytes

BugBytes

Күн бұрын

Пікірлер: 34
@repotranstech9614
@repotranstech9614 Жыл бұрын
One the best channel for Htmx and Django.
@robhafemeister3100
@robhafemeister3100 Жыл бұрын
Your level of expertise is impressive, always look forward to new content from you.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot, Rob!
@Sathya848
@Sathya848 6 ай бұрын
Always learn so much when I watch your videos. Thank you
@bugbytes3923
@bugbytes3923 6 ай бұрын
Awesome to hear, thank you!
@drumforhim
@drumforhim 8 ай бұрын
I recently discovered your channel, researching about htmx. Great content, great explanation of things and I love your accent!!! This particular video took me back at least 10-12 years when we used dom scripting and jquery! Keep it up!
@bugbytes3923
@bugbytes3923 8 ай бұрын
Thanks a lot! This style of coding is definitely a throwback to the jQuery days!
@gerhardspitzlsperger1567
@gerhardspitzlsperger1567 Жыл бұрын
Very helpful content as always ...
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks!
@ermalgashimramori
@ermalgashimramori Жыл бұрын
This my third time watching the video, and I have been referencing the code for "boilerplate" since it helps getting started. Comparing with exact samples is a great idea, it helps a lot more. Thank you
@ahmedbadal3795
@ahmedbadal3795 Жыл бұрын
This is so advances for me .. its so amazing tutorial nice explanation
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks. Hope it was understandable!
@anzei331
@anzei331 Жыл бұрын
Great tutorial as always! In the context of this vid, another nice comparison would be with Hyperscript.
@RyanWheelerUK
@RyanWheelerUK Жыл бұрын
Had a quick look at hyperscript but hard to grok as its so very different
@JustinSpryce
@JustinSpryce Жыл бұрын
Great lesson
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you Justin!
@socaldude6756
@socaldude6756 Ай бұрын
I could be mistaken, but it seems like Htmx increases the code size with its need for more extensive JavaScript compared to jQuery? As someone who has used jQuery for many years, I’m still new to Htmx, and this comparison hasn’t really convinced me to switch.
@Schlumpfpirat
@Schlumpfpirat Жыл бұрын
But is htmx actually intended for dom manipulations like that? 🤔 The JS API seems more to be intended to fire htmx events. After all I might as well use vanilla JS to achieve the same functionality. Don‘t see why I would use htmx for that since it has no benefit
@bugbytes3923
@bugbytes3923 Жыл бұрын
I would say that you certainly don't require HTMX for these actions. It's not the main purpose of HTMX either. However, the point of the video is to show that it is possible, and that HTMX comes with a set of tools for scripting and working with events/the DOM. And these tools happen to be very similar to jQuery (and vanilla JS). So if you're already using HTMX for it's "normal" functionality, you can also use it as a light scripting aid if you need to. The HTMX JS API is also useful to know about if you're developing HTMX extensions - this is a light introduction but not really related to that, admittedly. Modern JS is very capable of handling these tasks, of course. Use whatever works best for you :)
@afoo
@afoo Жыл бұрын
cool~
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks!
@trosgate
@trosgate Жыл бұрын
Amazing amazing. I have been following you for quite a while now because of htmx. I am doing great systems with htmx thanks to you. **I WANT TO MAKE A REQUEST THAT YOU SHOULD SHOW US HOW TO REDIRECT PAGES WITH HTMX. NO ONE IS TALKING ABOUT IT BUT I HOPE TO GET YOUR GUIDE. Keep up sir
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you! I'll have a think about your idea, cheers.
@arunima2916
@arunima2916 Жыл бұрын
Great as usual!!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks!!
@carloseduardovieiramartins6102
@carloseduardovieiramartins6102 Жыл бұрын
Can u explain more about the onLoad event? i'm losing all my js scripts when i add dynamic pages, like for example losing the focus etc from input fields
@rangabharath4253
@rangabharath4253 Жыл бұрын
Awesome bro 😎
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks man.
@Htbaa
@Htbaa Жыл бұрын
htmx.on('td') shouldn't be inside that tds.forEach() (around 9:20). You'll end up with a lot of extra events on all the td-elements this way. Just pick the element from the event object. Ah but wait, at around 10:43 you do reference the element from the array. My question then would be: doesn't htmx.on() allow a query instead?
@freddiemounir855
@freddiemounir855 Жыл бұрын
can you make review for all htmx functions?
@onnot701
@onnot701 Жыл бұрын
why not just use vanilla javascript?
@Htbaa
@Htbaa Жыл бұрын
If you're already using htmx in your project and need to add some Javascript (or _hyperscript) it's handy to have these utilities by hand. It's not like htmx has tons of added functions.
@cristianbilu
@cristianbilu 11 ай бұрын
Your use of HTMX is triggering to people who know what that library is for. Based on the HTMX documentation: "While it is not a focus of the library, htmx does provide a small API of helper methods, intended mainly for extension development or for working with events." And even in the cases that HTMX is a good solution for, you did not use the intended way HTMX was built for, you just wrote shit in the tag and called it "using HTMX"
@bugbytes3923
@bugbytes3923 11 ай бұрын
This is purely a demo of HTMX scripting features. That's literally the purpose of this video. See others for "proper" use.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 87 М.
So Cute 🥰
00:17
dednahype
Рет қаралды 56 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 57 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 8 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 16 МЛН
Frontend Masters CEO Talks HTMX, Search, jQuery
26:09
ThePrimeTime
Рет қаралды 51 М.
Django & HTMX - Template Fragments with django-render-block
20:53
HTMX and the View Transitions API
20:21
BugBytes
Рет қаралды 14 М.
Jeremy McPeak's Larabits - HTMX May Be All You Need
15:22
Laracasts
Рет қаралды 11 М.
BREAKING: jQuery V4 Is Here (YES REALLY)
12:30
Theo - t3․gg
Рет қаралды 186 М.
HTMX заменит Frontend?! WTF?
12:12
Как пройти в IT?
Рет қаралды 112 М.
Modern frontends with Thymeleaf and htmx by Wim Deblauwe
49:05
So Cute 🥰
00:17
dednahype
Рет қаралды 56 МЛН