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 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

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;