{"id":147093,"date":"2013-08-20T07:11:13","date_gmt":"2013-08-20T14:11:13","guid":{"rendered":"http:\/\/css-tricks.com\/?p=147093"},"modified":"2013-08-20T12:17:49","modified_gmt":"2013-08-20T19:17:49","slug":"the-use-of-jquery-in-tutorials","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/the-use-of-jquery-in-tutorials\/","title":{"rendered":"The Use of jQuery in Tutorials"},"content":{"rendered":"

A question came up in a semi-recent ShopTalk episode<\/a> about the use of jQuery in tutorials.<\/p>\n

Lately I’ve begun to realize how muddled the line between jQuery and JavaScript has become when learning about the language. It’s hard to find a solid tutorial that doesn’t include jQuery instead of JavaScript. What’s your opinion on the overuse of the library?<\/p><\/blockquote>\n

<\/p>\n

The question was from Nick Hehr who wrote about it<\/a> as well. You can listen to our answer there with this time-jump link<\/a>. <\/p>\n

If you’ve been reading this site for very long, you know we’re a bit guilty of that. I’m not sure there has ever been a tutorial posted here that just used “vanilla” JavaScript (i.e. JavaScript by itself, no framework) rather than jQuery. Or if we have, they are few and far between. Is that a bad thing? I’m not so sure it is. But it is certainly worth discussing.<\/p>\n

A little bit later I published an article that covered how to swap out text<\/a> after an event. I covered five ways to do it. jQuery was used in two of them, vanilla JavaScript another, and CSS for the other two. Including jQuery, even amongst other options, ignited some “that’s just overkill” style discussion:<\/p>\n

\n

Ah helpful, but there is really no need for jQuery here: Swapping Out Text, Five Different Ways – http:\/\/t.co\/5gyFGmoCVp<\/a><\/p>\n

— Smashing Magazine (@smashingmag) July 3, 2013<\/a><\/p><\/blockquote>\n