Strategy: Let Google and Yahoo Host Your Ajax Library - For Free

Todd Hoff's picture

Don't have a CDN? Why not let Google and Yahoo be your CDN? At least for Ajax libraries. No charge. Google runs a content distribution network and loading architecture for the most popular open source JavaScript libraries, which include: jQuery, prototype, script.aculo.us, MooTools, and dojo. The idea is web pages directly include your library of choice from Google's global, fast, and highly available network. Some have found much better performance and others experienced slower performance. My guess is the performance may be slower if your data center is close to you, but far away users will be much happier. Some negatives: not all libraries are included, you'll load more than you need because all functionality is included. Yahoo has had a similar service for YUI for a while. Remember to have a backup plan for serving your libraries, just in case.

Comments

Let Google know more about you

Yay! Give google one more channel for tracking users. Analytics and adsense can be blocked without much impact on content. Block this and you break a site.

Re: Let Google know more about you

I didn't get that what you meant exactly overthere. How could adsense be blocked in this kind of a strategy.

----
underwater sea plants
Seaweed

Ad Block

I think the person meant to use ad blockers such as AdBlockPlus addon in Firefox to block the domain for AdSense, Analytics. These AJAX APIs use a different hostname so they can also be blocked as well. But blocking it will certainly break a website which depends on these libraries to function properly.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div ?=?><p ?=?> <img ?=?><h1 ?=?><h2 ?=?><h3 ?=?>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions
  • You may link to webpages through the weblinks registry

More information about formatting options

To combat spam, please enter the code in the image.