To use jQuery on your site, it must be either downloaded and linked to in the document head or included by linking to a CDN in the document head.

Downloading the Library

The latest jQuery library can be downloaded from the official jQuery site. Once downloaded, place it in directory of your choice, usually just off the root, and then link to it in your site documents as done in the following.

				
					<head>
</head>
				
			

Linking to a CDN

Instead of downloading the jQuery library and placing it directly on your site, you can link to a third-party CDN (Content Delivery Network).

The advantage of using a CDN is that users may have already downloaded the jQuery library when visiting another site, and thus, it will be loaded from their browser cache when they visit your site, which leads to a faster loading time.

The latest version can be linked to from the official jQuery site. The link is placed in the head of your site documents.

				
					<head>
</head>
				
			

Either way, once the library is available to your site, you can utilize the jQuery library site wide.