5 ms·
The problem is that most of the "abstractions" provided by jQuery are no longer abstractions and can frequently be replaced with simple alternatives that are di
by lalaland1125 4y ago
The problem is that most of the "abstractions" provided by jQuery are no longer abstractions and can frequently be replaced with simple alternatives that are directly provided by browser APIs that have extremely wide support.
https://youmightnotneedjquery.com/ https://youmightnotneedjquery.com/ is a handy illustration of this.
- evilotto 4y agoI fail to see how replacing 1 line of jQuery with 10 lines of plain js is simple. Sure, you don't use those 10 lines all over the place, you write a function ... but then aren't you just recreating jQuery?
- franciscop 4y agoYes, and if you continue long enough you end up with one of the many jQuery alternatives, like mine: https://umbrellajs.com/ https://umbrellajs.com/
- shadofx 4y agoYes but only the parts you need, which means better performance and job security.
- jefftk 4y agoThat site was very helpful when it first came out, but now that most of us don't even need to support IE11 it's assumption that you at least want to support IE10 is very stale.