I've done this a couple of times recently and just realised that I used the same method to make it work each time. The theory being that if you use this:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
Then it should use Google's copy,which is fine. However, when I upload a site to my hosting area for testing, this doesn't work as it does locally.
Instead, I have to get a copy of the jQuery library uploaded to the hosting area, and link locally instead so that it works.
This is the weird part. If I remove the local link, refresh the page, and then add the Google API link into the page and refresh it again it works fine.
I've made sure the copy I uploaded was removed so it didn't load it from there, but it seems like an odd way to have to go about getting it to work.
On top of this, I double checked that I removed the cache etc... to make sure it isn't hiding somewhere, and seems to be running from Google's link fine.
If anyone can clarify this weirdness I'd be greatful. I don't have a massive wealth of experience with jQuery stuff yet, but this seems like it should be as simple as dumping the link into the page and the library should be accessible.
Cheers![Smile :) :)](/styles/default/xenforo/vbSmilies/Normal/smile.gif)
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
Then it should use Google's copy,which is fine. However, when I upload a site to my hosting area for testing, this doesn't work as it does locally.
Instead, I have to get a copy of the jQuery library uploaded to the hosting area, and link locally instead so that it works.
This is the weird part. If I remove the local link, refresh the page, and then add the Google API link into the page and refresh it again it works fine.
I've made sure the copy I uploaded was removed so it didn't load it from there, but it seems like an odd way to have to go about getting it to work.
On top of this, I double checked that I removed the cache etc... to make sure it isn't hiding somewhere, and seems to be running from Google's link fine.
If anyone can clarify this weirdness I'd be greatful. I don't have a massive wealth of experience with jQuery stuff yet, but this seems like it should be as simple as dumping the link into the page and the library should be accessible.
Cheers
![Smile :) :)](/styles/default/xenforo/vbSmilies/Normal/smile.gif)