The 3 alpha was minified at 83 KB, unminified is 250 KB. But the point is that you don’t need a library to do a lot of stuff anymore (thanks a lot to jQuery pushing us forward). You’re swapping 10 lines for 1 but also the other 83 KB of stuff you may not need.
I mean yeah but you don't have to look at the 83 KB of code. I'm really happy with all the stuff that's easy in vanilla JS now, but I don't really understand why people so badly want to get rid of jQuery. I don't use it for every project, but when it will be useful I don't see much reason to worry about the extra 30kb of (gzipped) data. Most of my images are bigger than that.
16
u/gonzofish Feb 13 '19
Yes, the developer ergonomics is better but you end up shipping ALL of jquery to do it