Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialA X
12,842 PointsHow Does Unobtrusive JS Equate to jQuery?
Just rewatched Andrew's 'What is Unobtrusive JS' video, and I still have no idea how the concept of unobtrusive JS relates to jQuery use. I can understand why you'd want to have your Javascript script(s) at the end of your page so the HTML and CSS load first, and that would create a less obtrusive site...but again I'm not seeing the relationship to jQuery. Can someone help clear this up? Thanks!
Note: I know that Andrew has a lengthy blog post about unobtrusive JS and why it's important in the teacher's notes, but I find (for now) that kind of in-depth discussion a bit above my level of comprehension as a beginner.
Michael Wells
4,493 PointsMichael Wells
4,493 PointsHopefully what I say is correct and will provide some clarification.
The way Andrew explains unobtrusive JavaScript is a friendly, sure-fire experience that will provide the user with a fast, and easy, method of completing their task on said website. jQuery does not make a website completely unobtrusive, rather it helps developers go down that route. jQuery is JavaScript in its purest form, and as such, is directly affected by obtrusive JavaScript practices.
jQuery allows the developer ease-of-use when creating interactivity to their website, and with this ease-of-use, we can prevent obtrusive JavaScript.
I hope this helps!