You can basically sum up this entire rather ridiculous site with "Yes, you don't need jQuery, you can just use the built-in methods, but using jQuery is generally more pleasant, more consistent, and involves less typing". One particularly egregious example from the site: $('#foo').removeClass('bold'); vs. document.getElementById('foo').className = document.getElementById('foo').className.replace(/^bold$/, ''); The au…
You Don't Need JQuery
71–80 of 201 posts
Re: You Don't Need JQuery
#72Forget this "you don't need JQuery"...JQuery, the entire library, is basically an API bug report against the DOM! What browsers need to start doing is get off their butts and start implementing a real selector implementation like Sizzle. Reduce JQuery to set of polyfils after that.
As for IE7 support. Sorry that still accounts for too much of my traffic to ignore.
Re: You Don't Need JQuery
#73Re: You Don't Need JQuery
#74I do need JQuery because I want to focus on the application and not nuances of different js implementations. And I want to use the simple selector mechanisms. Then there's plugins, I use those too and many assume/require JQuery. So no, I disagree. Stupid article.
Re: You Don't Need JQuery
#75Right off the bat, on the first 3 examples, he shows how you need to use different APIs depending on the IE version. That alone is enough reason to use jQuery and not having to bother.
You're pointing out an IE problem, not a javascript problem that isn't present in other browsers.
Re: You Don't Need JQuery
#76Right off the bat, on the first 3 examples, he shows how you need to use different APIs depending on the IE version. That alone is enough reason to use jQuery and not having to bother.
You're pointing out an IE problem, not a javascript problem that isn't present in other browsers.
I don't care who caused the problem. Just that it wasn't me, I can't fix it, and I have a deadline to meet and constraints to follow. jQuery is a lifesaver.
Re: You Don't Need JQuery
#77Re: You Don't Need JQuery
#78Next up: you don't need Underscore/Lodash! Forget this "you don't need JQuery"...JQuery, the entire library, is basically an API bug report against the DOM! What browsers need to start doing is get off their butts and start implementing a real selector implementation like Sizzle. Reduce JQuery to set of polyfils after that. As for IE7 support. Sorry that still accounts for too much of my traffic to ignore.
Re: You Don't Need JQuery
#79Yeah, you don't need anything. You can write all your apps in vanilla JS, but if you feel like speeding up development...