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 Using a jQuery Carousel Add a Carousel to a Page

<script> tag differences

Please help me understand why we have to link on the index.html the slick.min.js and not the slick.js. Which is the difference between each of them?

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Eni Begotaraj,

The key difference between the two is the filename with .min.js is a minified file commonly referred as an uglified file, the one with just .js reflects the original source file whether it was compiled from multiple imported files or just the one.

In a development environment, it is better to use the non-minified version while on a production server you always want to use the minified version whether it be hosted on your own server or a CDN which is recommended.

Hope that helps.

Thank you for your answer. It was very helpful.