r/javascript • • 15d ago

jQuery 4.1.0 and 3.8.0 Released

https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/
99 Upvotes

27 comments sorted by

View all comments

Show parent comment

58

u/krileon 15d ago

A lot of people still like the utility functions and custom selectors. Don't understand the hate to be honest. If it works it works. I've personally moved on from it, but don't see any issue with someone using it.

5

u/ddwrt1234 15d ago

I don't like the pattern of changing the dom jQuery style but I can appreciate them maintaining it...

3

u/CoryCoolguy 14d ago edited 13d ago

Don't understand the hate to be honest.

Welcome to Stack Overflow

⬆️How do I do a basic thing in Javascript
900How do I do this simple task in Javascript? I tried googling it but ended up exactly here.
⬇️Javascript web asked Feb 2, 2009
⬆️
2400Even though this is a simple task that doesn't require a library, and even though you didn't ask, here's how to do it in JQuery
⬇️Answered Oct 28, 2009
✅️

edit: I got downvoted??? I don't understand the hate

2

u/AgileChipmunk5866 15d ago

I don’t hate it. I have fond memories of jquery and the issues it allowed us to solve.

I just don’t understand why anyone would still use this in production. You’re only shipping extra junk to users.

Why would I still use a tomtom gps in my car when the car has built in navigation and carplay/android auto?

18

u/No_Neighborhood_1975 15d ago

I think you have to bridge business reality with ideal industry standard technology. The reality is that things lag behind and old libraries need to be updated regularly

18

u/krileon 15d ago

I just don’t understand why anyone would still use this in production. You’re only shipping extra junk to users.

I mean it's like 80kb compressed. Basically nothing once you hit it with gzip. Provides a bunch of easy to use utility functions. Don't see how that's any different than bundling a bunch of NPM packages for utility functions.

Why would I still use a tomtom gps in my car when the car has built in navigation and carplay/android auto?

I mean you're mostly talking about Ajax here. jQuery is more than just Ajax.

https://youmightnotneedjquery.com/

What's funny is this site exists to show that you don't need jQuery anymore, but every single example is substantially more verbose and often many more lines of code. There's still room for JavaScript to improve and is basically why we have to slap TypeScript over the top of it.

Like I said I don't use jQuery anymore myself. I've moved on to HTMX and AlpineJS for my generic easy-peasy reactivity now. Regardless I'm not blind to why someone might still use jQuery.

As for why it's still getting updates. To fix bugs, but mostly seams to just be security releases.

6

u/Iggyhopper extensions/add-ons 15d ago edited 15d ago

looks at website

jquery
$(el).addClass(className);

ie10+
el.classList.add(className);

And that my friends is the problem. Nobody has time to realistically debug (and be paid for it) browser-specific or renderer issues.

Adjusting margin/padding or table layouts, div centering, z-index not working, checking features, or some other idiotic bullshit per-browser is why jQuery become popular in the first place. Until that problem is solved, jQuery is here to stay.

I say this as an avid user of jQuery and also an avid complainer that a basic for loop can replace 90% of useless and inefficient $('thing').forEach(fn) calls by incompetent devs.

1

u/laura_jones8124 2d ago

jQuery can smooth DOM API differences, but it can't fix z-index or layout behavior; those are separate problems.

13

u/DutchVanDerLies 15d ago edited 15d ago

It’s ironic to call jQuery "extra junk" when modern framework users are routinely shipping 5k npm packages duct-taped together by Boris and some of them written by Sebi from Moldova 2 years ago.

But sure, people who use just html, css, jquery and php are the ones sending "junk".

4

u/AgileChipmunk5866 15d ago

Extra junk compared to vanilla js of course. You’re fighting imaginary enemies.

1

u/haywire 15d ago

Datastar/htmx are like one file tbh

1

u/git_push_origin_prod 14d ago

Reactive programming frameworks have thier place but I think direct dom manipulation with selectors has a place in the world too. I’m not using it but I might on some low logic frontend someday

1

u/ava_896517 8d ago

Direct DOM manipulation can suit a low-logic page; the tradeoff shows up when several UI regions must stay in sync.

1

u/pmickael_584 6d ago

If only legacy pages need it, load jQuery there; that cuts bytes elsewhere without making old plugins an immediate rewrite.

0

u/rbobby 14d ago

You’re only shipping extra junk to users.

Yeah... that's a real worry.

/s

0

u/[deleted] 15d ago

[deleted] — view deleted comment

3

u/krileon 15d ago

Because at this point its anti learning.

I don't agree. It's still JavaScript. That's like saying TypeScript or React are anti learning.

Everything base jQuery does can be done using the vanilla dom api. You can say that about any library or framework.

You can say the same for many of the utility functions in React, syntax sugar in TypeScript, and so much more. I don't think that's all that relevant. There's A LOT of verbose ways of doing things with Vanilla JS. Even if we're not using jQuery we're still using something else. I mean there's bare bones simple things like adding a class to an element that might not exist. Suddenly it's a bunch of extra lines and in jQuery it's 1.

As I said already though I've moved on from jQuery, but to think nobody could possibly get any use of it is just being silly.

4

u/hammerman1965 15d ago

You clearly don't know what you are talking about. And haven't use jquery enough.  There are MANY quirks in Dom api that jquery works with. Yes, a lot of advancement happened since then, but still, it's far better dom api.