Live data from Hacker News

jQuery 4

blog.jquery.com

111–120 of 313 posts

Re: jQuery 4

#112
post #86

is there any reason to use jquery if you've never used it before

Don’t let all of the old heads glazing jquery in this thread confuse you - they’re just nostalgic. There’s no reason to even think of using jquery in 2026

Re: jQuery 4

#113
post #58
post #5

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/jquery@4.0.0 [1]: https://bundlephobia.com/package/preact@10.28.2

> Preact is only 4.7 kB Is there some outlier place where people using virtual DOM frameworks don't also include 100-200kb of "ecosystem" in addition to the framework? I suppose anything is possible, but I've never actually seen it. I have seen jQuery only sites. You get a lot for ~27kB.

Look at Deno + Fresh which is based on preact. You can do a lot with preact only

Re: jQuery 4

#114
I love jQuery and it’s elegant methods chaining over object / array of DOM elements you keep in the chain.

15+ years ago I wrote a tutorial for french people about using jQuery, it got a lot of views. I hope it helped spread jQuery.

Re: jQuery 4

#115

Earlier quoted context omitted.

These days I’ve moved to native JS, but hot damn the $() selector interface was elegant and minimal vs document.getElement[s]by[attribute)]. While presumably jquery is slower than native selectors, maybe that could be pre-computed away.

jQuery but gets compiled out like svelte... Not a bad idea at all.

I hate to sound like a webdev stereotype but surely the parsing step of querySelector, which is cached, is not slow enough to warrant maintaining such a build step.

Re: jQuery 4

#116
post #115

Earlier quoted context omitted.

jQuery but gets compiled out like svelte... Not a bad idea at all.

I hate to sound like a webdev stereotype but surely the parsing step of querySelector, which is cached, is not slow enough to warrant maintaining such a build step.

Some things you build not because they are necessary, but because you can.

Re: jQuery 4

#117
post #15

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!

all these kids chasing the new frameworks...jQuery and .NET framework have always kept me fed!

Re: jQuery 4

#118
post #84
post #3

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

What's wrong with React? It made it so much better to build apps vs. spaghetti jQuery. I still have nightmares about jeeping track of jQuery callbacks

It's overly verbose, unintuitive and in 2025, having a virtual dom is no longer compulsory to write interactive web apps. If you want to write modern web apps, you can use Svelte. If you want to write web apps truly functionally, you can use Elm. React is the jQuery of our times. It was really helpful in the Angular era but we are living at the dawn of a new era now.

Re: jQuery 4

#120

Earlier quoted context omitted.

There's also React Native Web

I'm sorry what

I find it is a good idea, it allows developers to cleanly define how to structure elements without random divs sneaking in.

It requires a strong design system and it probably makes it harder to use some web APIs but those can be reasonable tradeoffs

Post reply on HN