Hacker News new | ask | show | jobs
by hnarn 970 days ago
Is there some kind of summary available somewhere of what features are “unique” to jQuery (or at least significantly easier), and what features are now generally available as vanilla JS or CSS?

I’m not a JS developer and I just have a basic understanding of what jQuery is used for, so I’d be interested in seeing some kind of historical timeline, both to better understand why jQuery was originally created, and to understand what purpose it might fill today (legacy dependencies excluded).

2 comments

Quite a feel of those seem like while you don't need jQuery (so the site is indeed actually named), it's still often easier. Doubly so when you consider that the non-jQuery methods don't always chain together.

Admittedly I'm usually using it in places where loading the extra library is not an issue, so if you're really going for slimline, then sure.

I've always thought that about this site. If they were trying to ease people off jQuery, showing the vanilla JS equivalent side by side is not going to have the desired impact!
This site perfectly shows why jQuery still rocks.
Perfect
Off the top of my head, jQuery has some unique selectors that aren't replicated in vanilla CSS, like :eq()