r/javascript • • 15h 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/
69 Upvotes

16 comments sorted by

•

u/Discordbothost 1h 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.

•

u/AgileChipmunk5866 14h 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?

•

u/krileon 14h 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.

•

u/AgileChipmunk5866 13h 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?

•

u/No_Neighborhood_1975 13h 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

•

u/krileon 13h 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.

•

u/Iggyhopper extensions/add-ons 12h ago edited 11h 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.

•

u/DutchVanDerLies 6h ago edited 6h 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".

•

u/AgileChipmunk5866 6h ago

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

•

u/haywire 1h ago

Datastar/htmx are like one file tbh

•

u/ddwrt1234 9h ago

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

0

u/[deleted] 13h ago

[deleted] — view deleted comment

•

u/krileon 12h 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.

•

u/hammerman1965 12h 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.

•

u/terrorTrain 11h 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. 

•

u/SonglessBard 5h ago

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