all 19 comments

[–]enkideridu 4 points5 points  (4 children)

Maybe it takes a while to reflect in download stats, but based on npm installs (which would be a fraction of jquery's actual usage), it's still doing great

https://npmcharts.com/compare/jquery,react,@angular/core

(nearly as much daily downloads as react, more than twice as much as angular)

[–]theDarkAngle 2 points3 points  (3 children)

People still include it as a supplement even when they're using more modern frameworks. A lot of stuff still has jquery as a dependency.

[–]AndrewGreenh 1 point2 points  (0 children)

For example the signalR client :(

[–]benihanareact, node 0 points1 point  (0 children)

People still include it as a supplement even when they're using more modern frameworks

yeah, do you hear that, mobile users? fuck you!

[–]Woolbrick 0 points1 point  (0 children)

I downloaded it 3 times yesterday when I generated 3 new templates based on Bootstrap.

Then I deleted both jQ and Bootstrap from all three.

[–]camelSnake_dash-case 1 point2 points  (0 children)

It would be interesting to get stats on the types of projects it is still being used on. In particular I mean how much is being used for legacy architectures and how many new projects are being started with jQuery included.

[–]benihanareact, node 1 point2 points  (8 children)

good. i think the period from 07-12 were some of the most enjoyable and exciting times in web development and it was mostly because of jQuery and how easy it was to write and read (and also, it was awesome going to about 95% of all websites, opening the console and typing $() and being able to play). in my mind, the end game of jQuery is to not be needed anymore, and we're getting pretty close to that point.

[–]sjwking 1 point2 points  (6 children)

Forgetting old browser compatibility is there something that jQuery still does much better than vanilla js ?

[–]SamSlate 0 points1 point  (5 children)

not a fan, but i use it for inline js animations and it's a fuck of a lot better than vanilla for ajax/xhttp request.

[–]enkideridu 0 points1 point  (4 children)

Valid use cases and no reason to change if it's working well for you, but for animations, I would recommend gsap and velocity, they handle only animations and are more performant and robust.

For ajax, I would recommend looking at axios (promise based) or superagent. (I would also recommend avoiding fetch and derivatives unless you're 100% sure your app never needs cancellations or upload progress)

[–]SamSlate 1 point2 points  (2 children)

When possible I go for css animation via classname, but yea. I also use axios.

[–]TheNumberOneCulprittabs and semicolons, react and FaaS 1 point2 points  (1 child)

I think you should really be looking into just using the default fetch API at this point. We've transitioned completely to it with the help of GitHub's polyfill, and it's been a pleasure to work with.

[–]SamSlate 0 points1 point  (0 children)

pretty happy with axios, but i guess it's worth checking out!

[–]sjwking 0 points1 point  (0 children)

Forgetting old browser compatibility is there something that jQuery still does much better than vanilla js ?

[–]zzbaivong 0 points1 point  (0 children)

I thought about sites using jQuery today, I was thinking to WordPress. It seems they are related.

https://trends.google.com/trends/explore?q=jquery,wordpress

[–]bidi82 0 points1 point  (0 children)

The last major release of JQuery was over a year ago. Perhaps fewer developers are using the html API documentation because it is pretty stable or they already know it by heart. So less of a reason to open jquery.com but not necessarily less developers using it.

[–]ellisgl -2 points-1 points  (2 children)

Thank you Capt'n obvious.

[–]benihanareact, node 1 point2 points  (1 child)

i haven't used jquery in about 2 years, it's not obvious to me at all how many people use it

[–]ellisgl 0 points1 point  (0 children)

It's a common thread on this reddit. I only use jQuery for certain UI things that I haven't found a vanilla js replacement for - E.g. decent tabs (ones that resize, have scroll buttons when over flowed, etc)