Free Jobs
Reference




Dot Net Forums: ASPNET (77) C#.NET (39) VB.NET (8) AJAX (21) Silver Light (1) WCF (10) WPF (1) WWF (1) .NET 3.5 (3) SQL SERVER (38) Other (3)

Topic: What are advantages to host standard jQuery Library for your website with google CDN

To get the Posted Questions details daily in your mail Click Here

Share this Post on Facebook/Twitter/Orkut Bookmark and Share





User: rajiv100 Post Date: 30 Jan 2012 07:10

Introduction:
What are advantages to host standard jQuery Library for your website with google CDN



Main Content:
  It is better and advantageous to let google

  host standard jQuery Library for your website with google CDN

  Below are the points explaining it.

  a)Faster jQuery download due to decreased network latency:

    A website can be accessed from any part of the world and

    if you are using Jquery then it has to be downloaded from the server.

    If you are using Google CDN to hosy the Jquery ,the Jquery will be downloaded

    from the nearest possible CDN computer.So network latency will be less and

    Download will be faster.

  b)Faster Loading of website due to Increased parallelism:

    There are many browsers that limits two or less simulteneous connections

    per host.So if you are hosting jquery on your own site

    one connections will be used in that.So its better to

    use google CDN to remove this one connection from your server

    and thus using that to download some other content from your website

    simulteneously.



  c)Faster Loading of website due to Caching of Jquery:

    There are may websites using Google CDN to host their Jquery.

    Suppose you are opening your website in a browser that

    has opened a Jquery enabled site with Google CDN.

    Then the Jquery file is alredy downloaded by the browser and it is there

    in browser cache.

    Then your website need not download the Jquery file again

    but it just needs to use it.So website loading will be faster.

   So you can Host Jquery for website on Google CDN as below:



  Include the below script tag in the Head section of your page preferebly.

  <script type="text/javascript"

   src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

 

Conclusion:
Thus it is advantageous to host standard jQuery Library for your website with google CDN



About Writer:
Hi,I am .NET Developer From Bangaloret


Writer's Link:

Writer's Email:







Comments:
Post Comment





Similar Articles Top ArticlesLatest Articles Other Articles by this Author







www.freejobsreference.com Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)