Why you shouldn’t use jQuery but plain JavaScript
lennydevelops.com
lennydevelops.com
Plus, I sort of remember the Dark Ages, before jQuery. Let me tell you: I'm immensely thankful for an abstraction layer against all those freakish browsers, their versions and their quirks. Can I natively select DOM elements by class name and attribute values in IE9? I don't know, and I don't give a flying fork - life is too short to spend it with browsers.
It has a lot of the things you would need jQuery to do and is tiny and cross-browser. If pure JS isn't an option, MinifiedJS is the next best thing. For now, most web developers should still learn jQuery, but they should transition stuff off jQuery so one day it's not as widespread a requirement.
jQuery comes with built-in browser support for a million different issues I'd never know about until I ran into them. A quick browse of the jQuery source will turn up hundreds, if not thousands at this point, of browser support hacks/tweaks.
- Life's too short to deal with cross-browser incompatibilities.
- jQuery too heavy for you, there's Zepto.
- Not at all times you are in control of your stack, especially when you just inherited the project.
- If you happen to work on a Drupal project, good luck with ditching jQuery. It's built in.
- Clients will always ask for "cross-browser support up to IE8" without knowing it's a dead browser.
- What matters to clients is that it works. They don't give a beaver's construction project what you used to build it.
I'd wouldn't say "Why you shouldn't use jQuery", but more of "when to and when not to use jQuery/vanilla/CSS3".
Without the standard library.