News for hackers. Stuff that matters.
Re:jQuery 4.1.0 by Gualdrapo on Tuesday November 17, 2026 @03:06PM (#50537381)
I wonder if people use jQuery on their new projects. Vanilla JS has come a long way since jQuery was king.
Re:jQuery 4.1.0 by elondaits on Tuesday November 17, 2026 @03:09PM (#50537429)
Yes. I did not so long ago. Vanilla JS is fine in term of features, but if you consider jQuery code idiomatic, then it's much more compact and readable for some development patterns.
Re:jQuery 4.1.0 by etatester on Wednesday November 18, 2026 @08:49AM (#50546293)
The problem with jQuery is that it swallows all errors. Dead code remains and you're none the wiser. That's only ok if you ship 2 KB of JS, at which point You Might Not Need jQuery either.

$('.mispell').hide()

No error. Just silent. This is why jQuery is not a good library other than for 2010 cross-browser development.

Re:jQuery 4.1.0 by hirvi74 on Tuesday November 17, 2026 @03:13PM (#50537503)
I do when absolutely necessary, which is becoming rarer as Vanilla JS improves, like you stated. One of my coworkers is still using it on all new projects though. My employer has avoided the whole SPA scene for better or worse.
Re:jQuery 4.1.0 by bryanlarsen on Tuesday November 17, 2026 @03:33PM (#50537772)
I'd use jQuery if IE11 support was a requirement. It's been a long time since I've seen that as a requirement, but IE11 was the last Internet Explorer before it got replaced by Edge. I wouldn't be surprised if there were hold-outs out there still using it...
Re:jQuery 4.1.0 by ksec on Tuesday November 17, 2026 @04:25PM (#50538404)
I had to check wiki, IE 11 came out 13 years ago! Internet Explorer 11 support ended on June 15, 2022, and it was permanently disabled on February 14, 2023. ( must have missed the memo or I have forgotten about it )

W3Counter shows Around 0.07% of market share.

I wonder why IE11 is still being used or even a requirement? Especially in today's world where security could be a very serious issue.

Re:jQuery 4.1.0 by OuterVale on Tuesday November 17, 2026 @05:07PM (#50538919)
IE 11 isn't fully out of support for a few more years yet. There are so many enterprises using it with so many custom tools built just for the browser. Most is tight lipped under NDAs but some of the details and remaining usage figures are staggering.
Re:jQuery 4.1.0 by abanana on Tuesday November 17, 2026 @05:51PM (#50539390)
> permanently disabled

Only on Windows 10 and 11. It still runs as it always did on previous Windowses.

Re:jQuery 4.1.0 by pjmlp on Tuesday November 17, 2026 @03:36PM (#50537812)
It is still less verbose than the DOM navigation APIs that landed on the browsers.
Re:jQuery 4.1.0 by petre on Tuesday November 17, 2026 @04:04PM (#50538157)
Go ahead, use document.querySelector. Why? Because chaining and a bunch of other stuff and not bothering to check if querySelector actually got anything every single time.
Re:jQuery 4.1.0 by xp84 on Tuesday November 17, 2026 @05:24PM (#50539116)
There's a purpose for everything. Jquery is quite nice to write and works great. For a whole site, I'd these days be interested in building with HTMX, but JQ is fine and has the advantage that there are millions of people out there who know it well.

What vanilla is obviously unbeatable for is, you're writing a snippet of JS that you can hand anyone[1] to run with no dependency requirements. Some codebases may be explicitly incompatible with JQ, so knowing how to do all the JQ basics "vanilla" is an important skill so you don't have to bring in a "big" (relatively, I mean) library to support a 7-line function.

[1] for example, an embed code, an analytics tag, or a script to customize the markup on a page.

Re:jQuery 4.1.0 by DamnInteresting on Tuesday November 17, 2026 @05:20PM (#50539073)
> I wonder if people use jQuery on their new projects.

I do frequently, partially because I tend to branch new projects from old ones, and the old ones often used jQuery. Updating everything to vanilla would be a lot of effort for little gain.

I wonder how it feels for the original jQuery developers. They solved some big problems, then their ideas were just copied into Javascript itself, and their pioneering library became decried as old and irrelevant--even though it works just fine, and still solves some niche problems.

Re:jQuery 4.1.0 by lofaszvanitt on Tuesday November 17, 2026 @09:40PM (#50541174)
John Resig et al scattered some corn and they ate them like chickens. They stole the ideas and couldn't copy the features adequately. They had one job. They failed. They should've brought a black suitcase full of money to them and ask nicely to implement the whole thing to replace the abhorrent JS browser side implementation.
Re:jQuery 4.1.0 by marticode on Tuesday November 17, 2026 @07:51PM (#50540440)
I do because every time I try to use vanilla JS, I end up reinventing the $ function and adding a few basic utilities, at which point it feels like I might just use jQuery and make my code more compact and legible.

That being said it's no longer that useful for dealing with browser incompatibilities or for remote calls. I end up using a stripped version or something like https://github.com/fabiospampinato/cash

Re:jQuery 4.1.0 by pknerd on Wednesday November 18, 2026 @12:58AM (#50542398)
Many backend programmers like me who don't know or dont want to know modern JS frameworks still use it