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

HTML jQuery Basics (2014) Introduction to jQuery Include jQuery in a Project

Evan Henley
Evan Henley
8,194 Points

Missing http: Bug

CDN code from jquery.com is:

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>

But the lesson requires the http!

<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>

4 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Stage 1 Challenge 2 should now be fixed to work with or without specifying the protocol. Sorry for the trouble, and let us know if you have further issues!

James Barnett
James Barnett
39,199 Points

That's an overly specific code challenge correctness test given we now live in the world of blocked mixed content, so protocol relative urls are the order of the day.

What say you Andrew Chalkley?

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

We've just had an update to the engine to give syntax errors. Our challenge did do // or http://. This seems to be a bug that's been introduced incidentally. (Our runner uses file:// for // so that's an issue). Tagging our dev Jay McGavren who got rid of Bummer Null :)

Kevin Korte
Kevin Korte
28,148 Points

Mmm, interesting how the lesson requires the http. jQuery CDN is using http://www.paulirish.com/2010/the-protocol-relative-url/