«  The Google Book Search Bibliography Main Mapping what Google can't (or won't)  »


OStatic:

Google Now Hosts Open Source Libraries Written by Reuven Lerner - May. 27, 2008


Ajax, a programming/design technique that combines JavaScript, asynchronous HTTP connections, XHTML, and CSS, has turned the Web into a true application platform. Before Ajax, submitting a form or clicking a link meant that the entire HTML page needed to be sent from the server, and then redrawn in the browser. Ajax allows for far more selectivity, such that only one part of a page is updated, leaving the rest untouched.

Ajax works quite well, and has been increasingly popular among many new Web sites. The only problem is the fact that the underlying JavaScript calls needed for Ajax are slightly different on various browsers. A common solution to this problem is to use an open-source Ajax library, such as Prototype, Dojo, or jQuery. Each of these libraries is designed and tested for cross-platform compatibility -- so you can write to the JavaScript API that a library provides, without having to worry about the underlying, browser-dependent details.

The thing is, what if multiple sites are using Prototype 1.6? Because browsers cache files according to their URL, there is no way for your browser to realize that it is downloading the same file multiple times. And thus, if you visit 30 sites that use Prototype, then your browser will download prototype.js 30 times.

Today, Google announced a partial solution to this problem that seems obvious in retrospect: Google is now offering the "Google Ajax Libraries API," which allows sites to download five well-known Ajax libraries (Dojo, Prototype, Scriptaculous, Mootools, and jQuery) from Google. This will only work if many sites decide to use Google's copies of the JavaScript libraries; if only one site does so, then there will be no real speed improvement.

There is, of course, something of a privacy violation here, in that Google will now be able to keep track of which users are entering various non-Google Web pages. That is, if you incorporate Google's version of jQuery into your site, Google will know when someone enters your site, and the various pieces of information (e.g., browser and IP address) that you might want to keep hidden. For those who prefer it, Google is offering the JavaScript files through a function call and API, in addition to a simple "script" tag.

These issues aside, Google's offer does seem to be quite useful for sites and developers alike, reducing memory and bandwidth usage without reducing site flexibility at all. It will be interesting to see how many sites take Google up on their offer, and how positively it will affect users.

arrow

Post a comment

We had to crank up the spam filter so it may take a little while to appear. Thanks.

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

A book in progress by

Siva Vaidhyanathan

Siva Vaidhyanathan

This blog, the result of a collaboration between myself and the Institute for the Future of the Book, is dedicated to exploring the process of writing a critical interpretation of the actions and intentions behind the cultural behemoth that is Google, Inc. The book will answer three key questions: What does the world look like through the lens of Google?; How is Google's ubiquity affecting the production and dissemination of knowledge?; and how has the corporation altered the rules and practices that govern other companies, institutions, and states? [more]

» Send links, questions and ideas:
siva [at] googlizationofeverything [dot] com

» To reach me for a press query, please write to SIVAMEDIA ut POBOX dut COM

» To reach me for a speaking invitation, please write to SIVASPEAK ut POBOX dut COM

» Visit my main blog: SIVACRACY.NET

» More about me

Topics

Like the Mind of God (57 posts)

All the World's Information (75 posts)

What If Big Ads Don't Work (20 posts)

Don't Be Evil (16 posts)

Is Google a Library? (84 posts)

Challenging Big Media (46 posts)

The Dossier (49 posts)

Global Google (26 posts)

Google Earth (6 posts)

A Public Utility? (37 posts)

About this Book (28 posts)

RSS Feed icon  RSS Feed


Powered by Movable Type 3.35