4 ms·
So where does this library compromise? Why isn't jQuery this small?
by pearjuice 13y ago
So where does this library compromise? Why isn't jQuery this small?
- ricardobeat 13y agojQuery has a lot of bloat from edge cases and bugs accumulated over the years, and still ships with it's own selector engine.
- tjansen 13y agoThere are a lot of specialized features in jQuery that Minfied does not have. For example, the only way to register an event with Minified is using on(). jQuery has on() as well, but it also has a number specialized functions like 'click()' and the legacy 'bind()'. Another example are jQuery's the complex selector/stacked set features, like 'andSelf()' or 'next()'. Minified only has simple lists and a couple of callback-using helper methods like 'collect()' and 'filter()'. If you are doing something complex and know jQuery's API well enough, jQuery is more powerful.