DEV Community

Discussion on: Why is there such profound and intense hatred towards jQuery in the WebDev world?

Collapse
 
vonheikemen profile image
Heiker

95kb really that much of a huge deal in the digital age of 2019?

Yes. Or at least draw the line somewhere. What is too much for you 1MB, 2MB 5MB?

Remember, we are living in an era where news and social media sites easily download tens of megabytes of data in adware alone!

What are you doing? You don't think jquery is bad and yet you're trying to justify yourself by saying others are doing worse?

jquery is ubiquitous in use and some of its ways have no other alternatives.

Okay. You really like jquery's syntax. I get it. To be fair there are some libraries that try to be an alternative (like this one: cash).

Anyone who tells you that document.querySelectorAll("div.foo") is more preferable to $("div.foo") need to have their head examined.

So your opinion is now a fact and everyone else is stupid. Nice.

The pure JS alternatives to these are so unpleasant that most devs won't even try to recall it, trust me!

You can't be serious? That's it? That's all you have to say in defense of jquery? You didn't even mention the plugin ecosystem.


Let's do a recap: you like jquery's "syntax" and you like the utility functions.

If you ask me those 95kb are not worth it. I would prefer to make my own utility functions. If i need some heavy DOM manipulation then i would go for Preact.