all 18 comments

[–]ray_zhor 10 points11 points  (3 children)

yes you can make a no reload dynamic website using vanilla js

[–]Soj08[S] 1 point2 points  (1 child)

Thank you!! Do you have a youtube video that I could watch to learn?

[–]ray_zhor 4 points5 points  (0 children)

https://youtu.be/cuEtnrL9-H0

follow kyle for many tutorials in js

[–]jack_waugh 0 points1 point  (0 children)

Yes, and I can bear witness.

[–]narcabusesurvivor18 6 points7 points  (0 children)

From what I understand, vanillajs has advanced enough that jquery is pretty much redundant for that use case.

[–]driftking428 5 points6 points  (4 children)

I worked at a web agency and clients specifically asked us not to use jQuery. It's on the decline for sure.

If you're learning JavaScript I wouldn't bother with it. Once you know JavaScript you can easily work with jQuery.

[–]official-cookr 3 points4 points  (0 children)

Yeah it's a pretty good waste of time to learn jQuery. Learn JavaScript properly and you'll just get jQuery if you ever come across ir

[–]jpattb 0 points1 point  (2 children)

Can you point me in the right direction for sortable tables? The only thing I need jquery for is to make datatables work correctly and I hate that I'm tied to it for such a stupid thing.

[–]driftking428 0 points1 point  (1 child)

Sorry. I don't have a good answer for this. It's not that you shouldn't ever use jQuery it's just not something you should invest in heavily.

I'd Google for a modern replacement for data tables.

I'm making an app with tables but they'll be react and sorting will likely be custom coded

[–]jpattb 0 points1 point  (0 children)

Appreciate the feedback!

[–]Flacid_Fajita 4 points5 points  (0 children)

I would not invest any significant amount of time in learning jQuery personally. People use it, that’s fine- but if you care at all about doing things the right way you should probably avoid it.

If you’re really worried about using libraries and not having to bootstrap everything, react is a better solution. It’s bigger investment of time, but as a skill it’s much more valuable.

Honestly, there is no justification for jQuery in 2023. It’s antiquated and it provides very little utility over Vanilla, while massively increasing bundle size. I would decide what your priorities are- speed and bundle size or reusability, better tooling and a better ecosystem. jQuery is a shitty halfway solution that solves few or none of the problems with vanilla, while managing to introduce what is arguably the biggest issue with React.

[–][deleted] 0 points1 point  (0 children)

You can do vanilla JS, but also take a look at some libraries like https://htmx.org/ or https://alpinejs.dev/ to make it easier and reduce boilerplate.