Code2care : TechZone Apps & Tutorials

Hosted jQuery Script Pros and Cons

"Should we use Google/jQuery Hosted jQuery Script?" is a question that may come to a web developers mind. The answer is not a simple one cos there are many factors that one has to look into. Lets see what are the pros and cons.


    1. The biggest advantage would be that the user visiting your website may have already cached the jQuery script since he may have visited sites that uses Google hosted jQuery script, Hence there may be no need to even download the jQuery script file as it may already been cached by the browser.

    2. It decreases latency (i.e the response time) as Google servers are distributed and my be located at different geographic locations, the file will be downloaded from the nearest locations.

    3. Browsers can handle only a few number of connections for a particular host, hence using Google js library api will add concurrency and may fasten up page load time to some extent.

    4. If you site has a very high traffic, using Google Hosted jQuery script may lower your bandwidth issue to some extent.


    1. It may so happen that Google services may be blocked in some workspaces or counties (e.g. China) hence the script will not be loaded thus your website may not function as expected. If it is very important that you manage to write a intelligent script that handles such scenarios.

    2. If you have a service that works offline (on a local network) it would show down your response time drastically. Always use local copy of jQuery when working offline.

    3. Though google services seems to be up 99.999%, but it may so happen that the server goes down.

    4. The distributed server may be far from the location where a request was made thus resulting in high latency.

    5. Security issue : The service may not be available on https protocol.

    6. Privacy issues : They may collect user informations. Please read the Privacy policies & Terms for more details :


Posts related to google.

1. Resolving DNS_PROBE_FINISHED_NXDOMAIN Google Chrome Error

2. Somethings not right Error Gmail Hangout

3. How to Enable-Disable Android Robot buddies icons in Google Gtalk

4. Fetch as Google Crawl Error or Redirected Status

5. Fetch More then 10 Links Per Page in Google Search Result

6. Hosted jQuery Script Pros and Cons

7. Google Analytics Adds Cohort Analysis Reports

8. Enable-Disable Profile Pictures in Gtalk in Gmail

9. Oops! Google Chrome could not find www website Try reloading

10. How to remove old 404 pages ulrs from Google crawler

11. Where to get cheapest Google Cardboard VR Kits in India


Popular tags
x 175
x 29
x 20
x 14
x 14
x 14
x 13
x 11

1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy

Code2care © 2012-17