News for hackers. Stuff that matters.
Re:jQuery 4.1.0 by dalemhurley on Tuesday November 17, 2026 @04:12PM (#50538250)
There is a heap of indie devs that swear by jQuery and avoid the frameworks like react. Each has their use cases.
Re:jQuery 4.1.0 by smt88 on Tuesday November 17, 2026 @04:27PM (#50538442)
[delayed]
Re:jQuery 4.1.0 by reassess_blind on Tuesday November 17, 2026 @04:56PM (#50538800)
Valid questions. In jQuery's case it's still so widely used by older codebases that it makes sense to improve and keep maintained. I think it's important to have alternatives in any case. Some people still prefer to write code by hand, and some people prefer jQuery.
Re:jQuery 4.1.0 by mathgeek on Tuesday November 17, 2026 @04:58PM (#50538823)
I wouldn't say there are _many_ use cases, but "LLM is writing code in a legacy codebase without heavy refactors" fits your question.
Re:jQuery 4.1.0 by SoftTalker on Tuesday November 17, 2026 @05:02PM (#50538871)
Same reason we've always sacrificed performance for syntactic sugar. Readability and maintainability are the big ones. If you trust your AI to get it right, sure I guess that doesn't matter.
Re:jQuery 4.1.0 by smt88 on Tuesday November 17, 2026 @05:58PM (#50539454)
[delayed]
Re:jQuery 4.1.0 by nilamo on Tuesday November 17, 2026 @05:04PM (#50538890)
Vanilla JS only works with a recent browser. JQuery works with old garbage people never updated.
Re:jQuery 4.1.0 by saidinesh5 on Tuesday November 17, 2026 @05:22PM (#50539092)
But what old garbage browsers are still in use?
Re:jQuery 4.1.0 by TonyTrapp on Tuesday November 17, 2026 @05:33PM (#50539229)
More than you'd think if you start looking outside of the western tech bubble. Not everyone across the whole globe can afford the latest and greatest phones or laptops.
Re:jQuery 4.1.0 by smt88 on Tuesday November 17, 2026 @06:01PM (#50539478)
[delayed]
Re:jQuery 4.1.0 by skydhash on Tuesday November 17, 2026 @06:28PM (#50539693)
Single download is better than multiple small downloads.
Re:jQuery 4.1.0 by majewsky on Tuesday November 17, 2026 @06:41PM (#50539831)
Ain't no law saying that you can't bundle multiple polyfills.
Re:jQuery 4.1.0 by skydhash on Tuesday November 17, 2026 @06:47PM (#50539898)
You can. And that's how you get jQuery
Re:jQuery 4.1.0 by Timon3 on Tuesday November 17, 2026 @07:59PM (#50540508)
Is "modern" jQuery tree-shakeable? If not, individual polyfills will be way smaller.
Re:jQuery 4.1.0 by nchmy on Wednesday November 18, 2026 @05:57AM (#50544697)
But you don't need the latest and greatest phone to have the latest browser. Android 10 (released in 2019) supports the latest chromium versions and android 8 (2017) and 9 (2018) support up to v138.
Re:jQuery 4.1.0 by starkparker on Tuesday November 17, 2026 @05:34PM (#50539245)
jQuery 3.8.0 was also part of this release (if "as a send-off, not a comeback" per the announcement[1]), and it supports IE 9-10, legacy Edge, iOS 7+, and Android 4.0+.

We just had a T1 line blow up the entire US air control infrastructure, so I'll happily assume people are still using old garbage in critical workflows.

1: https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-re...

Re:jQuery 4.1.0 by smt88 on Tuesday November 17, 2026 @06:01PM (#50539473)
This is absolutely not a reason to use jQuery. This reason is 15+ years old.

First, modern vanilla JS APIs have been available for more than ten years. A browser without them is absolutely ancient.

And for the browsers that are truly that old, you can use nearly-weightless polyfills instead of jQuery.

Re:jQuery 4.1.0 by olmo23 on Wednesday November 18, 2026 @09:06AM (#50546492)
> old garbage people never updated

hot take: we should not be supporting them.

(i get that this is a hard sell if you use your website to make money)

Re:jQuery 4.1.0 by xp84 on Tuesday November 17, 2026 @05:11PM (#50538975)
Serious question: On modern hardware how much performance is jQuery actually taking away from you? Compared to the ridiculous overkill factor of using React for simple static pages, a practice I see everywhere now, the time it takes jQuery to parse seems inconsequential.
Re:jQuery 4.1.0 by saidinesh5 on Tuesday November 17, 2026 @05:20PM (#50539072)
Not sure about "modern hardware" but I think the comparison is between jQuery vs. Vanilla JS on "modern browsers".

My only data point was my Blog felt significantly snappier on my 5 year old phone - especially on bad 4G connections - when i simply ditched jQuery and used Vanilla JS.

> The latest version of jQuery (v4.0.0) is 76.8 kB minified and 27.0 kB minified + gzipped.

Re:jQuery 4.1.0 by treve on Tuesday November 17, 2026 @08:54PM (#50540907)
[delayed]
Re:jQuery 4.1.0 by smt88 on Tuesday November 17, 2026 @06:02PM (#50539490)
[delayed]
Re:jQuery 4.1.0 by proxyscore on Tuesday November 17, 2026 @07:10PM (#50540119)
Yes and reading resigs book on how he made jquery, well I can't say anything but the guy was a genius way ahead of it's time.
Re:jQuery 4.1.0 by nchmy on Wednesday November 18, 2026 @05:53AM (#50544667)
Have a link to this book?