Why I'm still using jQuery in 2019

#1

Hello Sitepoint,

This is a good read.
https://arp242.net/jquery.html

Thanks

#2

So why not get a proper discussion going by saying what you think of the article?

What do you agree with or disagree with? What did you find thought-provoking?

1 Like
#4

This is also a good read…

http://vanilla-js.com/

  1. I think that the article to which I linked, provides
    tongue-in-cheek information.
  2. I was amused by the Download option.
  3. The Speed Comparison, I found to be mildly
    thought-provoking.

Here is another, no holds barred diatribe directed at jQuery…

HTML, CSS and JavaScript Frameworks - Incompetent Nonsense

…that may provoke some interesting comments. :biggrin:

coothead

#5

Yes that article did the rounds in the usual channels last week or so. My 2c, I’d agree with the author that the size of jQuery [light] is not the end of the world; but its mere overhead is simply not necessary for most applications, where a couple of custom helpers to wrap the (indeed rather unwieldy) DOM API would suffice.

And that it was not easy to remove jQuery from BS is probably more telling about BS than about jQuery. ^^ To be clear I think BS is certainly a useful CSS framework, but the JS parts have always been exceeding its scope anyway IMHO.

5 Likes
#6

I have a few read run ins with deathshadow on another forum, for the most part I agree with him. Though on a few occasions I disagree with him or don’t totally agree with him. I do agree with him on jQuery and frameworks as a single developer I find it silly to learn a framework or library when it can be done natively done with HMTL/CSS/JavaScript unless your are force to by the company you work for. I have never learn bootstrap or used Wordpress as I don’t want to learn a specialized code that muddles the HTML/CSS for me personally.

#7

Doesn’t Jquery makes everything easy. I think the JavaScript equivalent for slideToggle() would be tough. My 2 cents.

#8

So why not get a proper discussion going by saying what you think of the article?

@TechnoBear

Because articles like this have no substance and only provide confirmation bias for those who refuse to update their skillsets or learn anything that they don’t already know. If you look at the HN thread, all the replies back me up. It’s all people getting warm and fuzzy by having their bad habits confirmed as being ok.

The reality is, there isn’t much to talk about. jQuery is not the future. It had it’s time when it was the best thing out there by a wide margin, now the official specs have caught up and surpassed it. Thank you jQuery for bringing these issues up and being so successful that your ideas were included into the actual specs.

If you need to support IE10 or below on brochure sites, use it. If you don’t, then you should spend the time to learn how to stop using it.

I think the JavaScript equivalent for slideToggle() would be tough. My 2 cents.

@littlebirdy

Look at what is happening in the DOM when you use things like slideToggle or fade. It’s bad. CSS is better and is backed by the GPU, not some incrementing/decrementing number directly manipulated on the DOM. Triggering an animation in CSS is much simpler too since all you need to do is add or remove a class.

The only thing you’re really losing from CSS is a callback when the animation is complete. That can be handled in other ways, though. When I made the switch that was one of my biggest hangups, but now I just design my applications in a way that knowing whether the animation complete or not is just irrelevant.

And that it was not easy to remove jQuery from BS is probably more telling about BS than about jQuery.

@m3g4p0p

There have been unofficial versions of BS JS functionality without jQuery since BS 4 was in Alpha, too. It’s a strawman.

1 Like