DEV Community

Discussion on: JavaScript or JQuery? Which do you use?

Collapse
 
leastbad profile image
leastbad

I think you know that jQuery is Javascript, but I thought your title was amusing. :)

I want to urge you to check out stimulusjs.org which is created by the guy behind Prototype. Prototype was a popular library in 2004-2005 which directly inspired the creation of jQuery, which became dominant.

Stimulus is a great choice for adding functionality to modern applications without going anywhere near the cult-like insanity of React, Vue and Angular - all which come with massive complexity and guaranteed hours of bikeshedding.

It's very straightforward to adapt old sites that were using jQuery for everything to work with Stimulus, which offers connect() and disconnect() life-cycle methods. The reason this is important is that today, we no longer assume that there's a single jQuery load event moment. I wrote at length about this in a more technical post here: dev.to/leastbad/mutation-first-dev...

Please let me know if you have any questions.

Collapse
 
urielbitton profile image
Uriel Bitton

ok very interesting.

And yes i mean the js library jquery!

Ill check it out