j.silver Posted October 30, 2015 Share Posted October 30, 2015 Dear all: I am linking jQuery from the internet as well as linking a local js file. Both the code and js file content are shown below. To test if it is loading or not, the alert function is used. Despite having a jQuery release 2.1.4 already, it loads with release 1.7.1 or earlier only. Why is it not loading with subsequent releases? <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery</title> <script src="http://google.com/jsapi"></script> <script src="js/scripts.js"></script> </head> <body> </body> </html google.load('jquery','1.7.1'); google.setOnLoadCallback(function(){alert('Loaded!'); }); Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2015 Share Posted October 30, 2015 it loads with release 1.7.1 or earlierI'm going to guess that this line has something to do with version 1.7.1 getting loaded:google.load('jquery','1.7.1'); Link to comment Share on other sites More sharing options...
j.silver Posted October 30, 2015 Author Share Posted October 30, 2015 Yes. It loads with version 1.7.1 or earlier only, and I inserted this particular version in the code to enable anybody testing the code to see it loading, whereas increasing said version results in no load. Why is it so? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2015 Share Posted October 30, 2015 This page lists the versions of jQuery that Google hosts. I would suggest telling it to load the current stable version instead of anything in the 1.x branch. Link to comment Share on other sites More sharing options...
j.silver Posted October 30, 2015 Author Share Posted October 30, 2015 Many thanks, justomeguy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now