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 jQuery Basics (2014) Introduction to jQuery Ways to Include jQuery in a Project

I can not find this CDN script. Can you help me?

I was following the video and Andrew copies and pastes a script snippet of code from JQuery's site. I cannot not find the code that he used.

http://jquery.com/download/#using-jquery-with-a-cdn

3 Answers

Adam Futrell
Adam Futrell
11,976 Points

Try the one that is hosted by Google...

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>

Christoph Walpert
Christoph Walpert
3,752 Points

Hi same problem here. For the future: go to code.jquery.com Click on the link of the latest version and then a script tag appears that you can copy :)

@Christoph Walpert That is what i was going to post, though when picking the recent version it gives you multiple ways[ie. uncompressed, minified, slim, slim minified], just select one and it will give you a link to copy and paste into the code.

For version 3.x, I selected uncompressed and it gave me this link: <script src="https://code.jquery.com/jquery-3.1.0.js" integrity="sha256-slogkvB1K3VOkzAI8QITxV3VzpOnkeNVsKvtkYLMjfk=" crossorigin="anonymous"></script>