News for hackers. Stuff that matters.
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.

Re:Native Javascript alternatives to jQuery methods by mjevans on Sunday March 31, 2019 @04:31PM (#19538165)
Of course you might also be adding that hack to a page that already pulls in jQuery, in which case why avoid it?