newborn
newborn

Reputation: 21

JQuery won't load; Failed to load/work? Please help a Noob out

I'm a noob, so forgive me for for asking such a dumb question but i watched alot of tutorials video and text. On the jquery website i copy n pasted, typed it and nothing! Chrome states that it failed under the network tab.

I tried (Isn't this correct?)

<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/jquery.js"></script>

Upvotes: 2

Views: 1938

Answers (3)

Vivek
Vivek

Reputation: 641

Test ur app with google CDN , in this way u dont have to worry abt the relative path and stuff. pointless to tell u mst hve active internet connection if using hosted copy of jQuery. If ur app runs fine then be sure that ur problem lies in the relative path, Moreover using hosted copy of jQuery give u additional benefits as stated by @Blender

Upvotes: 0

Blender
Blender

Reputation: 298106

If you are going to be using jQuery on a live site, let Google host jQuery. Their servers are faster and web browsers will cache jQuery, making your website load quicker:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Upvotes: 1

Simon Edstr&#246;m
Simon Edstr&#246;m

Reputation: 6619

Have you linked downloaded jquery and put it into a folder named js and are sure that the file are jquery.js?

You can use CDN insteed, change src to this URL: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js

And only use one script tag...

Upvotes: 0

Related Questions