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!

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


jQuery question

Isn't it better to use the minified version of jQuery cdn? I just dont understand why we should dowload the whole jQuery library. As in the previous videos, it was told that using cdn is just fine. I am just a bit confused here.

1 Answer

Steven Parker
Steven Parker
225,712 Points

The minified version makes a production environment more efficient, but the full version can be useful for development since it's easier to read parts of it if needed.

Self-hosting can avoid dependency on 3rd party services, but a reliable CDN can be useful and more efficient for a production system. It's good to be familiar with setting things up both ways.