Jump to content

jQuery Not Loading With Recent jQuery Releases


j.silver

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...