News for hackers. Stuff that matters.

Ask HN: Do you still use jQuery?

JS-land has typically been moving from one framework to the next. However, are any of you still using jQuery? If so what issues do you face and what are the advantages?
( 6 comments | 3 points | on HN )
Re:Ask HN: Do you still use jQuery? by datalist on Saturday May 16, 2020 @05:12AM (#23201799)
I recently migrated a personal project to a newer version of a library it is using and that version dropped its jQuery requirement. In that process I also rewrote my own code using jQuery and moved to vanilla JavaScript.

A lot, that required or semi-required jQuery before can now be done with vanilla JavaScript, however jQuery is still going strong with invoking code on sets of elements as well as cascading calls.

jQuery has been a fantastic library and deserves all the praise, however a lot of its functionality has made it by now into the language itself.

To answer your direct questions, I couldnt think of any "issues", at worst you download an additional 30 kilobytes (gzipped) but with today's mentality of megabytes and megabytes for websites, that really shouldnt matter much. As for advantages, as mentioned, JavaScript did take over a lot of functionality, but as direct advantages I'd consider aforementioned features. Additionally, there certainly is also still a lot of libraries/plugins which depend on jQuery.

Re:Ask HN: Do you still use jQuery? by fakeyguy on Sunday May 17, 2020 @01:01AM (#23209715)
thanks. this is really helpful.
Re:Ask HN: Do you still use jQuery? by GrumpyNl on Saturday May 16, 2020 @06:00AM (#23202083)
Working with jQuery for years and i love it. Very simple an fast. Done some things in react and angular, went back to jQuery.
Re:Ask HN: Do you still use jQuery? by nana- on Saturday May 16, 2020 @06:09AM (#23202153)
jQuery is universal . No issues, its clear and concise code working on every browser.

Understandable code as one programs the controller logic entirely and exposes it without magical hidden behaviour nor framework version dependency.

With no framework caveats nor non-intuitive behaviour to lookup in obfuscated documentation.

Re:Ask HN: Do you still use jQuery? by aww_dang on Saturday May 16, 2020 @05:08AM (#23201781)
I don't like the size of it, but it is a comfort zone and a dependency of bootstrap.
Re:Ask HN: Do you still use jQuery? by nana- on Saturday May 16, 2020 @06:19AM (#23202214)
Jquery's size is better than most framework sizes.