+ 5

Is jQuery still relevant in 2020?

Is jQuery still relevant in 2020 when native JS has much the same functionality? It seems to me that now it is needed only for people working with ancient applications, or am I wrong?

17th Nov 2020, 4:57 PM
KomarCorporation
KomarCorporation - avatar
5 ответов
+ 4
KomarCorporation Yes, it's mainly used by people working with ancient codebase or code that have jQuery as dependency. As @Gordon and @Programmer have said, you should avoid jQuery and use modern JavaScript and browser APIs instead. (Any extra knowledge is always appreciated, so don't feel bad if you learned it already) Programmer About jQuery reducing effort and increasing efficiency, i have some questions: -Do you work with jQuery regulary? -Are those numbers based on your own experience? -What's more comfortable to work with, jQuery or plain JS? I'm curious, feel free to ignore any of those questions if you think they are irrelevant to the op's question
18th Nov 2020, 7:37 AM
Kevin ★
+ 11
No! You are wrong. jQuery is on your choice. There isn't anything that jQuery does which cannot be done in Vanilla JS. Still, if a pure Vanilla JS code takes 10,000 characters, jQuery can do it in just 8,000. Thus reducing effort and increasing efficiency.
17th Nov 2020, 5:01 PM
Locus
Locus - avatar
+ 8
You should avoid using jQuery because it makes the page slow in loading.
17th Nov 2020, 5:16 PM
Gordon
Gordon - avatar
+ 8
Kevin ★ - No, I don't work with jQuery regularly because I'm much into frameworks like React. But all of my codes on Sololearn are built on jQuery. - Yes, those numbers are based on my work experience. - Actually, im comfortable with either of them. I don't think jQuery is used by people with ancient codebase. Websites like Github and Stackoverflow are still using it. Well, it's totally up to your preference :)
18th Nov 2020, 1:20 PM
Locus
Locus - avatar
+ 4
Thank you so much Programmer for sharing your personal experience, I really appreciate that. 1- Oh I see, thanks for sharing. 2- That's nice. I think jQuery makes me less productive, but I'm just a beginner so far, so I might be wrong. 3- That's awesome. After mastering modern vanilla JavaScript, jQuery definitely becomes a piece of cake. Yes, many websites use jQuery but apparently the trend seems to be to drop its usage for new productions. About Github, I found this post: https://github.blog/2018-09-06-removing-jquery-from-github-frontend/ It explains it better than i ever could. But yes, preferences matter :)
18th Nov 2020, 11:28 PM
Kevin ★