Load JQuery from Google

Due to JQuery’s huge popularity, many of the websites have been using JQuery. To decrease the bandwidth to and get faster download performance, it would be better to load from a general website such as Google. If other websites have downloaded it from Google, then the browser can serve from the local cache.

In this tutorial we will be using Google to load JQuery.

This can be achieved by adding a reference to JQuery url from Google.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

Or it could be achieved by using Google AJAX Libraries API.

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load('jquery','1.3.2');
</script>