Re:Native Javascript alternatives to jQuery methods
by wereHamster on Sunday March 31, 2019 @01:53PM
(#19537022)
I think people mistake this as an attempt to tell people to get rid of jQuery. No, that's not the point of these webpages.
jQuery still offers an overall nicer API than native. If you're building an application, and have to make the choice between using jQuery and going native, go pick jQuery.
However if you're writing a 10 line script that does something really small (eg. if you have a static webpage and need to make one button slightly interactive) then these guides tell you how to do it without importing all of jQuery.
However if you're writing a 10 line script that does something really small (eg. if you have a static webpage and need to make one button slightly interactive) then these guides tell you how to do it without importing all of jQuery.