CDN is Content Delivery Network which is fundamentally an extensive conveyed arrangement of servers which sent in various server centers over the web. It helps in reducing load time of a page by offering documents at a higher data transfer capacity from a server that is physically nearer to your guest than your web server may be.
Goal of CDN:
- Serve content to end-users with high availability.
- High-Performance
Reason behind the use of CDN to host jQuery :-
-
It reduces the load from your server.
-
It saves bandwidth.
-
The most essential advantage is that it will be reserved if the client has gone to any site which is utilizing jQuery framework from any of the CDN.
How to use a CDN to host jQuery?
For Microsoft:
<head>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.1.min.js"></script>
</head>
For Google:
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
</head>
0 Comment(s)