by mkoryak · 5y ago · 0 comments
The problem is that the reasons are not often understood and then a tool like this comes along and now we can easily replace jQuery with a worse API adapter. Hooray!
How it will likely be used is a different matter -- if you're a company trying to hire young devs and don't like to admit you have any legacy tech in the stack, then this is HOT code right now. Same if you need some bullshit targets to hit before the end of the quarter. Get on it!
One reason is that a lot of jquery’s bulk is compatibility concerns or BC in edges, if you decide that you don’t support old jQuery (mis)behaviour, older APIs, older browsers, … you can probably slim it down a fair bit.
A bunch of utilities you can also probably do without e.g. your jQuery.map, animations stuff, … jQuery is progressively deprecating more and more things, but it’s a harder sell to actually remove them.
You wouldn't want to remove jQuery from an app that is used by IE9.
People end up hearing the reasons and don't stop to think, hey does this actually apply to my code? What are the trade offs for that 30k of code?
Many just end up rewriting what jQuery did in a non reusable way that contributes to code bloat and bad readability.