Hating jQuery will not make you cool; However, adoring it will also not make you cool.
But In 2019 adoring jQuery will make you dumb.
So,
Leave the jQuery as it is and continue your life without it.
For further actions, you may consider blocking this person and/or reporting abuse
Minhaz -
Gcobani Mkontwana -
Salim Chemes -
Jagroop Singh -
Top comments (10)
Actually some people still prefer to just use Vanilla JS + jQuery because they feel they don’t need a big library like Vue or React. And no, that doesn’t make them dumb, it just means they’re good at not depending on a single library.
There was a time when I used to use jQuery of selecting element because that makes my life easy but Now we can do the same with Vanilla JavaScript also.
Maybe, but jQuery still allows people to write code that’s smaller and sometimes simpler than when using Vanilla JS, and some prefer that.
I completely agree with you that people use it and it is simpler. jQuery take around 30kb and beginners most of the time don't care about this cost.
People usually use 5-10 features and ships complete jQuery which is very bad.
Actually 5-10 features in 30 kB is not bad at all.
how?
When you can do the same with Vanilla JavaScript by writing little more code.
In 2019 you need not to write very much code compared to jQuery.
Here's an AJAX call in jQuery:
And it's Vanilla JS equivalent:
To me, the jQuery version is clearly simpler and easier to read, with much less boilerplate.
And remember that the Fetch API still isn't fully supported on some browsers, so some people will still prefer AJAX.
Yes, Vanilla JavaScript code is pretty ugly and I completely agree with that but using library just because your code doesn't look pretty is not a good idea at all. It will cost you a lot ( 30 kb).
Remember You can make the code more readable just by breaking it into function.
That was just an example. There could be a bunch of these cases in the code, and besides, 30 kB isn’t all that much anyway.
I completely agree with you but this is 2019. So things are very much changed, Now Vanilla JavaScript is also very much powerful. You need not to depend on jQuery of basic stuffs.
In term of size React( React + React DOM ) and jQuery 3 are almost same.