Jun 18, 2008

Experimenting with Google’s Ajax Libraries API

google-balls.pngThe new MailChimp V3 has got a quick interface that works more like software on your computer, and less like an old-fashioned web app that has to constantly reload and pull files from a remote server.

We accomplish this "slick-ness" with lots of JavaScript and Ajax.

You probably know that JavaScript and Ajax files can get pretty big, which can slow download times for web pages considerably. We’ve employed all kinds of little tricks to speed this stuff up, but we’re also experimenting with the newly introduced Google Ajax Libraries API.

If you run a web application that uses jQuery, dojo, MooTools, etc., you should check it out.

It’s kind of like Akamai’s distributed hosting service, but for the most popular open source JavaScript libraries. And it’s free.

Aarron Walter, our User Experience Designer, sums it up nicely:

"When you visit a website that uses one of these popular JavaScript libraries it’s downloaded and stored in your browser’s temporary memory (called the cache). The next time you visit a website that uses the same JavaScript library the load time will be significantly decreased because the cached version of the code can be used instead. As more web applications use Google’s Ajax library this common code will have to be downloaded less often, and that makes for a faster Web!"