r/javascript • • 6d 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/
95 Upvotes

23 comments sorted by

17

u/Discordbothost 5d ago

For anyone keeping a 3.x app alive, 3.8 adds Migrate warnings for things 4 already removed, including the old expr.filters alias. That's a handy way to find stale plugin calls in dev before changing the major version.

19

u/AgileChipmunk5866 5d ago

But why? Why is this not dead yet?
I can understand older applications still using it. But wouldn’t it be worth it to finally drop it as a dependency?

57

u/krileon 5d 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 5d ago

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

2

u/AgileChipmunk5866 5d 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 5d 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 5d 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 5d ago edited 5d 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.

13

u/DutchVanDerLies 5d ago edited 5d 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 5d ago

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

1

u/haywire 5d ago

Datastar/htmx are like one file tbh

1

u/git_push_origin_prod 5d 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

0

u/rbobby 5d ago

You’re only shipping extra junk to users.

Yeah... that's a real worry.

/s

2

u/CoryCoolguy 5d ago edited 4d 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

0

u/[deleted] 5d ago

[deleted] — view deleted comment

3

u/krileon 5d 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 5d 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.

11

u/terrorTrain 5d ago

There used to be a massive ecosystem of plugins. I guess there still is. 

Back before web apps, when you wanted a slideshow or whatever, jquery plugin was the move. 

A lot of those sites and plugins are still being used. 

2

u/iiiic 3d ago

Many people and companies still use it in their projects.

During a developers' meetup (in the Czech Republic), we conducted a survey and found that as many as 38% of companies still have jQuery on their websites.

A more interesting discovery, however, was the reason why it’s there. Everyone cited historical reasons; no one claimed that jQuery was actually essential for anything. Nobody needed it—it was simply present, and removing it would have been a lot of work. So, it’s probably better to keep it up to date rather than leaving it outdated.

3

u/SonglessBard 5d ago

With AI people dont care about spaguetti patterns anymore. jQuery will make a comeback

1

u/GaryEatsDick 5d ago

xD this is so sad but probably accurate

1

u/Klizmovik 4d ago

Because it just works, lightweight and very convenient.

1

u/OkCardiologist8006 4d ago

3.8 being explicitly a send-off is the real news imo. 3.x only gets critical fixes from here, so all those legacy sites stuck on 3.x because of some ancient slider plugin are kind of on the clock now. 4.1 isn't just security patches either, it switched internally to querySelectorAll everywhere (dropped getElementsByTagName/ClassName) and form-associated custom elements now work with .serialize(). jQuery learning about custom elements in 2026 is a funny sentence tbh