There is very little functionality JQuery offers that the modern browser DOM API doesn't provide with more robust performance.
Yeah, this is what some commenters are missing. The real alternative to jQuery isn't some fancy new framework, it's just... plain JavaScript.
Things have really gotten much better in the vanilla world. Although some things remain more verbose or cumbersome than jQuery alternatives, you really don't need a whole layer of abstraction to handle the simple tasks jQuery was designed for any more.
Unless, of course, you care about IE...
jQuery somehow gets abuse for being more bloated and slower than vanilla js despite the fact that almost nobody is ditching jQuery for vanilla js and instead running to vastly slower and more bloated SPA frameworks.
Did this comment onwards miss
"I did my last small project with vanilla js and the ugliness of the native APIs reminded my how lovely jQuery is" or am I seeing wonky here
Re:Bootstrap 5 alpha
by jfkebwjsbx on Tuesday June 16, 2020 @06:37PM
(#23545157)
Yes, but the native APIs are a PITA.
Re:Bootstrap 5 alpha
by rorykoehler on Wednesday June 17, 2020 @03:22AM
(#23548752)
At they? I don't write much js but always found the native apis to be the quickest way to implement functionality when I need to
Re:Bootstrap 5 alpha
by The_Colonel on Wednesday June 17, 2020 @03:40AM
(#23548861)
Yes, nearly every native API is uglier/longer/more inconsistent than jQuery equivalent.
Re:Bootstrap 5 alpha
by chrisweekly on Tuesday June 16, 2020 @07:02PM
(#23545408)
not like they used to be, youngster*
* veteran of the original browser wars
Re:Bootstrap 5 alpha
by Widdershin on Tuesday June 16, 2020 @08:12PM
(#23546020)
So is jQuery imo, especially the nonsensical argument order for iteration.
Given appropriate element names and classes, jQuery and CSS selectors can provide a straightforward and readable way to express application behaviours, and it's a well-proven and stable project at this point.