How to jQuery CDN?

CDN is short for Content Delivery Network . A CDN refers to a geographically distributed group of servers which work together to provide fast delivery of Internet content. This network of servers is dispersed across many physical and network locations , in order to respond directly to end user requests for web content and fast, secure media delivery. While a CDN does not host content and can't replace the need for proper web hosting, it does help cache content at the network edge, which improves website performance . A CDN provider is a vendor that provides businesses the ability to serve their content to end users across the world over a content delivery network. CDNs facilitate faster page loads and offer other important benefits including the following advantages:
  1. Improving website load times
  2. Reducing bandwidth costs
  3. Increasing content availability and redundancy
  4. Improving website security

jQuery CDN

Web programmers can leverage the use of CDNs to host their jQuery Library for faster access and improved performance. Luckily for us, both Microsoft and Google already host jQuery on their CDNs. All we have to do now is reference the hosted jQuery library.

Google CDN

<head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head>

Microsoft CDN

<head> <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script> </head>
If you wish to use jQuery CDN other than Google or Microsoft hosted jQuery library, you might consider using this and ensures uses the latest version of jQuery:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>