Alternatives to Downloading
If you don't want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network). bully.blue,Google and Microsoft host jQuery.
To use jQuery from Bully.blue,Google or Microsoft, use one of the following:
bully.blue CDN
Ex: <head>
<script src="http://bully.blue/libs/jquery.min.js"></script>
<head>
Google CDN
Ex: <head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
Microsoft CDN
Ex: <head>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
</head>
Advantage of using hosted jQuery from bully.blue/Google / Microsoft:
Many users already have downloaded jQuery from bully.blue,Google or Microsoft when visiting another site. As a result, it will be loaded from cache when they visit your site, which leads to faster loading time. Also, most CDN's will make sure that once a user requests a file from it, it will be served from the server closest to them, which also leads to faster loading time.
If you don't want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network). bully.blue,Google and Microsoft host jQuery.
To use jQuery from Bully.blue,Google or Microsoft, use one of the following:
bully.blue CDN
Ex: <head>
<script src="http://bully.blue/libs/jquery.min.js"></script>
<head>
Google CDN
Ex: <head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
Microsoft CDN
Ex: <head>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
</head>
Advantage of using hosted jQuery from bully.blue/Google / Microsoft:
Many users already have downloaded jQuery from bully.blue,Google or Microsoft when visiting another site. As a result, it will be loaded from cache when they visit your site, which leads to faster loading time. Also, most CDN's will make sure that once a user requests a file from it, it will be served from the server closest to them, which also leads to faster loading time.
0 comments:
Post a Comment