Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Introduction to jQuery Hello, jQuery! Setting Up jQuery

Vic Mercier
Vic Mercier
3,276 Points

Why would I dowload the uncompressed version of jQuery? What avantages would I get?

I'm a bit confusing about the uncompressed version of jQuery vs cdn

1 Answer

Martin Jones
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Martin Jones
Front End Web Development Techdegree Graduate 44,227 Points

Uncompressed is the readable format for jQuery with spaces and line breaks, making it a lot easier for you to read and get a better understanding of the framework.

The compressed version, removes the spaces and line breaks, so the benefit here is that you get a reduced file size but it is not as readable to humans.

Download jQuery to your computer and take a quick look at both the uncompressed and minified file as I think this will help paint a better picture of what is happening.

Lastly a CDN is a Content Delivery Network, where you can either host either a minified or uncompressed files and media.

Vic Mercier
Vic Mercier
3,276 Points

If I understand your answer well , that means that the compressed version will looks like this: dddddddddddddddddddddddddddddddddddddd;ddddddddddddddddddddddddddddddddddddddddddddddddddddddd;