logoalt Hacker News

jQuery 4.1.0

161 points • by petecooper • today at 7:50 PM • 70 comments • view on HN

Comments

CM30 • today at 9:03 PM

I'm a tad surprised jQuery still exists, though it's kinda neat it does. Always interesting to see historical projects with less and less modern day relevance get continued like this.

And while most of the use cases for jQuery have long since died out with things like classList, querySelector, etc, I do feel there's probably value in a framework that focuses on minor enhancements to a site rather than being the backbone of the whole thing. Like if you want a React or Angular or Vue equivalent, something like jQuery would be a terrible choice, but a lot of sites are static ones where the only scripting needed would be for minor things like dropdown menus or slideshows, and I can see a modern, lean library like this being a decent choice there.

➕ show 4 replies
hax0ron3 • today at 8:32 PM

Although jQuery isn't very relevant these days, I still find its pattern of chaining a sequence of methods on a set chosen by a selector to be a beautiful example of going with a language's features.

umvi • today at 9:53 PM

Moved to vanilla JS/TS years ago. In the age of AI CVEs, it's nice to have as few 3rd party dependencies as possible.

gosen • today at 8:02 PM

I'm actually surprised (in a good way) that it's still maintained, and it still helps half of the internet to function

Gualdrapo • today at 8:06 PM

I wonder if people use jQuery on their new projects. Vanilla JS has come a long way since jQuery was king.

➕ show 3 replies
dmix • today at 9:35 PM

One of the nice things about LLMs is you can port 10+ year old apps using jQuery to vanilla js pretty easily.

hinkley • today at 8:15 PM

I don't want jQuery back, but I want something that works like it except in the opposite way on corner cases.

Now that ES and CSS5 are everywhere, the biggest feature of jQuery is list comprehensions on components. Data is also still good IMO but mostly the comprehensions.

jQuery decided that calling a function on an empty list should be a no-op, but my experience using it for a very interactive application was that nearly every time we wanted something to definitely happen or it was a bug, and the handful of times where an empty list was expected were easy to anticipate.

Because the general problem was that making a selector that continued to work correctly as features were added was a black art. Two of us wrote selectors that almost always worked, the rest of the team wrote ones that almost always broke and only very slowly onboarded our advice (also all of the stuff they already wrote was a ticking time bomb).

New features and especially tweaking the DOM tree to stay compatible with old corporate browsers would break existing functionality about a quarter of the time someone had to change the DOM structure to close a ticket and it was infuriating.

So what I want is that if .hide() is a no-op, throw an exception. And if I'm implementing the 'select all/unselect all' feature I know that the list might be empty, I can add a flag or wrap a conditional around it so I ignore the error.

Because those functions work on a very tight chunk of DOM that changes structure much much slower than the overall document structure, and also that code is quite close to the point of change if someone does change it, so has better chances of being remembered than something in the header.

coredev_ • today at 8:39 PM

JQuery is not a good way to compose and handle complex ui:s. There are so much better ways today. I have fine memories of bootstrap and jQuery - just don't use them today if you are composing a somewhat complex ui.

➕ show 1 reply
squidsoup • today at 8:03 PM

Out of curiosity, are there still large projects using jQuery? Interesting that it is still maintained.

➕ show 1 reply
jgalt212 • today at 8:36 PM

I was about to say, but datatables.net! But version 3, as of July 2026, has dropped the jQuery dependency.

https://datatables.net/blog/2026/datatables-3

maxpert • today at 8:03 PM

In the age of AIs and Reacts, people would never realize the pleasure and the ease jQuery provided with shitty browsers like IE6!

➕ show 1 reply
frabjoused • today at 8:01 PM

Since it's easy now to maintain and this is still happening, why not bring back MooTools? I'd love to hear that AI chose MooTools as default and it's running the entire Internet.

➕ show 1 reply
vrubleg • today at 9:37 PM

It's a 2026 release, and jQuery still didn't drop 13-years-old IE11 :) https://github.com/jquery/jquery/pull/5077

Kuyawa • today at 9:34 PM

Some people hasn't awaken to the new AI dawn

You just don't need this. No jquery, no react, no tailwind, no fowntawesome, no external libs, no malware attack vectors, no waiting for a new update that never comes. It is all poison, just don't drink it and you'll be fine

➕ show 1 reply
bpiroman • today at 9:31 PM

I'm tempted to go back to writing jQuery now!

sloped • today at 8:57 PM

Back around the time React was maybe in it's pre 1.0 stage, I basically built a "React" system with jQuery as it's backbone. Div elements that declared what they were then were initialized at "Boot" to give them interactivity. It was disgusting and it ran in IE7.

jQuery really changed the game by letting an average developer actually use Javascript to enhance a web page. Granted I want to go back to the days when no one used Javascript and the Internet was a giant mess of terrible 8bit graphics and anonymous friends, but thank you jQuery for everything you did. It is not your fault humans are terrible.

➕ show 1 reply
gsoff • today at 8:12 PM

have you ever seen an ai suggest jQuery?

➕ show 1 reply
kyleee • today at 8:01 PM

Do they still build jquery ui? I kind of liked it and maybe will demand my agents start using it again for fun

➕ show 2 replies
Devasta • today at 8:32 PM

If it weren't for the chrome team fucking up autocomplete in their browser I'd probably still be using jQuery today. Even now I look at sites like https://youmightnotneedjquery.com/ and I see much nicer code to work with than the JS suggested.

whalesalad • today at 8:06 PM

    FAA ground stop: initiated
    Microsoft 365: down
    United Airlines: down
    Github actions: down
    Apple: down
    Nvidia CEO: owned
    Clandestine NSA network: down

    jQuery: 4.1.0 released :)