Emmanuel Kyeyune I never meant to convey jQuery isn't useful. I apologize if I have hurt your sentiments. I myself have use jQuery in my projects in past. That being said, What I meant was that it creates a lot of overhead in the project. Also, it adversely effects the loading performance.
Let's take the scenario. When you want to develop a small project, you can use jQuery, but you would have to ship an extra 255kb of jQuery file with you project(84 kb if minified).
Also, I would affect your Lighthouse metrics. As google detects the overhead. It also shows that jQuery has 3 known security vulnerabilities.
If you want to use only a small bit of jQuery code for DOM manipulation. Then Vanilla JS would be better. As, more than 50% of the code in the jQuery file would not be used(like Ajax code).
Lastly, there are lot of alternatives to jQuery like cash js which provide similar functionality in lesser file sizes.
The fact is that recently most of community started to hate jQuery and PHP also. That's why, I wrote the article. Thanks for reading and sharing your views. Stay safe.
Emmanuel Kyeyune
Cloud and DevOps Technical Lead
Just because something is in decline, doesn't mean its not still very useful. jQuery is great for small projects like Chrome extensions which may do a lot of DOM manipulation etc Otherwise you find yourself re-writing functions in vanilla JS that are already available in jQuery.
For larger code-bases, projects or libraries/modules, jQuery becomes more like unnecessary and unmanageable bloat.
I'd still use jQuery for any smallish project that will need to do a lot of DOM manipulation.