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 trial

JavaScript Using jQuery Plugins Introducing jQuery Plugins Adding a Plugin to a Web Page

Downloading tools like Jquery vs using solely script tag CDNs?

Specific to this video, I see that the project files contain a jquery file under the js folder. Do we need to download this, or can we just google the jquery CDN and copy and paste it into a script tag? I have wondered the same thing about things like bootstrap. Do we need to download bootstrap into our project files (any project, not just this one) or again can we just google the cdn and use that? ..I am not sure I am using the term CDN correctly, but hopefully, this is clear. Thanks!

1 Answer

Stephan Olsen
Stephan Olsen
6,650 Points

It's perfectly fine to make use of CDN for bootstrap and jQuery. You don't need to download anything if you use the CDN. Often people will use CDN in their projects, as it can minimize the loadtime clients. If a client has visited a site that has made use of the CDN, then he doesn't need to download it if he visits another site that uses the same CDN. In comparison, if you were to have your jQuery and bootstrap on your website, the client would have to download these when he visits the site, even if he has been to other sites that uses jQuery and bootstrap.