
Gabriel F. answered 10/31/19
Tutor
5.0
(85)
Full stack Javascript Engineer
Hi there. I would say it depends on the scenario:
- If you are using other jQuery features there is probably no disadvantage since you will need to load the library anyway.
- If you are using jQuery just for its $Ajax() method you would be unnecessarily loading a library to do something that could just as easily be done with vanilla JS. Keep in mind that if your pages refresh on navigation jQuery (and everything else) would be loaded for every HTTP request to the server (in general JS blocks page load unless you use some kind of defer loading technique).
I hope this helps.