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 Include jQuery in a Project

Matija Skriljak
Matija Skriljak
3,338 Points

I tried to include every CDN on internet with every version of jquery, and this task is not working.

Error in precompile test

index.html
<!DOCTYPE html>
<html>
<head>
    <title>Take Evasive Action</title>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
    <p class="warning">
      <span>It's A Trap!</span>
    </p>
    <div class="image">
        <img src="img/ackbar.gif">
    </div>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="js/app.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>

4 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Matija

There seems to be a newly occurred glitch in this particular challenge. Support and Andrew Chalkley have been made aware. Hopefully it is corrected soon. In the meantime, you can bypass the challenge by using the navigation on the top of the video window. Come back and give it a try in a few days. :)

Keep Coding! :dizzy:

Matija Skriljak
Matija Skriljak
3,338 Points

Thank you Jason for quick help, i bypass the challenge as you suggest.

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

It looks like it's an error that's happening outside the scope I can fix. I've opened an issue with the Dev team.

I keep getting 'Your code took too long to work'.

I just tried this again this morning and it worked with this code...

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>

Matija Skriljak
Matija Skriljak
3,338 Points

No, still not working! Now i get error "You didn't use the CDN hosted version of jQuery. Try again." with these CDN's : <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.0.js"></script> These are CDN's hosted on Microsoft and Google servers links are on Jquery official page. I am very dissapointed and moving to another course, maybe to another site Treehouse have many problems with those course tasks

Andrew Chalkley
Andrew Chalkley
Treehouse Guest Teacher

The code challenge task asks "Find the CDN hosted jQuery javascript file on the code.jquery.com and include it in the project."

If you visit http://code.jquery.com you can add any of the code.jquery.com hosted CDN files.