News for hackers. Stuff that matters.
Re:Native Javascript alternatives to jQuery methods by tambourine_man on Sunday March 31, 2019 @09:55AM (#19535585)
I always find it funny that links like “you don’t need jQuery” seem like jQuery advertisement to me.

The jQuery examples are always cleaner, shorter, more intuitive.

Re:Native Javascript alternatives to jQuery methods by giornogiovanna on Sunday March 31, 2019 @10:27AM (#19535733)
Yes, they're effectively the same, but one is slightly more ergonomic, and the other saves you 30KB (which isn't much, in my opinion) and the pain of managing yet another dependency.
Re:Native Javascript alternatives to jQuery methods by StillBored on Sunday March 31, 2019 @11:19PM (#19540166)
Its only 30k until your project gets large enough that the jquery terseness makes up the difference.
Re:Native Javascript alternatives to jQuery methods by petepete on Sunday March 31, 2019 @10:24AM (#19535714)
And cross-browser.