logoalt Hacker News

jQuery 4.0.0 Released

181 pointsby OuterValetoday at 4:23 AM42 commentsview on HN

Comments

blakewatsontoday at 6:12 AM

Related: This is a nice write-up of how to write reactive jQuery. It's presented as an alternative to jQuery spaghetti code, in the context of being in a legacy codebase where you might not have access to newer frameworks.

https://css-tricks.com/reactive-jquery-for-spaghetti-fied-le...

show 1 reply
b3ingtoday at 5:14 AM

Nice to see it still around and updated. The sad part is I guess this means React will be around in 2060.

show 2 replies
karim79today at 5:54 AM

Still one of my favourite libs on the whole planet. I will always love jQuery. It is responsible for my career in (real) companies.

Live on jQuery! Go forth and multiply!

chao-today at 7:27 AM

I cannot express how much I admire the amount of effort jQuery puts into their upgrade tools.

rationablytoday at 5:06 AM

Unbelievably, still supports IE 11 which is scheduled to be deprecated in jQuery 5.0

show 1 reply
madducitoday at 7:24 AM

This is huge. jQuery is still my way to go for any website requiring some custom interaction that isn't available in vanilla js.

indoleringtoday at 7:19 AM

I love that they support ES6 modules, Trusted Types, and CSP! The clearing out of old APIs that have platform replacements is nice to see too!

jusonchan81today at 6:10 AM

The first time I truly enjoyed web development was when I got the hang of jQuery. Made everything so much simple and usable!

show 1 reply
NetOpWibbytoday at 7:10 AM

I remember being scared of jQuery and then being scared of vanilla JS. My, how time flies.

Incredible it's still being maintained.

yreadtoday at 8:04 AM

Hmm maybe i can finally move on from 2.x

maxperttoday at 7:44 AM

jQuery is the last time I felt a library doing magic! Nothing has matched the feelings since then.

show 1 reply
MarkdownConverttoday at 5:35 AM

Long-time user here. It served me well for years, though I haven't really touched it since the 3.0 days. Glad to see it's still being maintained.

gocsjesstoday at 6:54 AM

jQuery is v4 now, but a lot of sites esp. wordpress still have 1.11 or 1.12 and only uses them to either doing modals(popover), show/hide(display), or ajax(fetch).

show 1 reply
netbioserrortoday at 5:48 AM

I was surprised that for most of my smaller use cases, Zepto.js was a drop-in replacement that worked well. I do need to try the jQuery slim builds, I've never explored that.

show 1 reply
tpoachertoday at 7:08 AM

still needs more jQuery

tonijntoday at 5:48 AM

No love for $…?

maxlohtoday at 5:19 AM

Even after migrating to ES modules, jQuery is still somewhat bloated. It is 27 kB (minified + gzipped) [0]. In comparison, Preact is only 4.7 kB [1].

[0]: https://bundlephobia.com/package/[email protected]

[1]: https://bundlephobia.com/package/[email protected]

show 1 reply