First Look: Google Gears

The following is republished from the Tech Times #166.

As web applications have increasingly become go-anywhere repositories for the minutiae of our day-to-day lives (email, contacts, photos, appointments, to-do lists), there has been a behind-the-scenes race to make them keep working when you unplug your laptop from the Internet. Demos from Scrybe, Dojo, Zimbra, and others have promised great things, but it seems Google has come from behind to win the race with the launch of Google Gears.

As reported last week on the SitePoint Web Technology blog, Google has announced the beta release of Google Gears, a web browser extension that allows web applications to continue to work even when a user is disconnected from the Internet.

First Look: Google Gears
Gears works in Internet Explorer and Firefox on Windows, Mac OS X, and Linux, with a view to eventually supporting Safari as well.

Far from the plug-and-go solution that you might expect, Gears is actually just a layer of relatively low-level features that make offline web apps possible. A lot of the hard work is still up to you.

Gears gives you three features, which you access and control in your web application using JavaScript code:

  • LocalServer
    Register a collection of URLs that Gears will download and keep a local copy of for the user. The user’s browser will then transparently receive these local copies, which remain accessible when offline, instead of fetching the online versions. The local copies may be set to update automatically, or only when you want them to.
  • Database
    Store data in a relational database just like you would in your server-side code, except that your users each get their own database. You can also access this database more quickly from your JavaScript code, because the database is stored on the user’s computer. It also remains accessible to your LocalServer-cached JavaScript code when the user goes offline.
  • WorkerPool
    The least glamorous part of Gears, unless you’re a total JavaScript geek like me. Essentially makes JavaScript multithreaded, enabling you to run time-consuming operations (like parsing a large XML document, or downloading a bunch of data into a Google Gears database) in the background, without freezing the browser or causing script execution time warning dialog boxes to appear.

With these tools, you can build applications that not only keep working using local copies of HTML, CSS, JavaScript, and image files, but work faster because they can store user-specific data locally instead of having to retrieve it from the server all the time.

First Look: Google Gears
No doubt Google’s full range of online services will soon be enhanced with Gears-powered offline support. To begin with, however, Google has started with just one of these services: Google Reader. With Gears installed, you can now switch Reader into offline mode, at which point it will download up to 2,000 articles from your subscribed feeds for you to read offline. This manual switch works well enough, but it does rely on the user to remember to click it before going offline.

The main reason Google elected to launch Reader’s offline mode with a manual switch is because building offline applications isn’t easy. The freedom of having local copies introduces the burden of keeping them in sync with server-side resources (otherwise users will be unable to access their data from another computer, and you might as well just build a desktop application). This is a non-trivial problem, and one for which the most appropriate solution will change from project to project. the Gears Developer Site has a whole article on the issues involved.

No, Gears doesn’t make these things easy, but it does make them possible, and for now that may be innovation enough. No doubt the easy-to-use application frameworks built on these foundations are already on their way.


Category: programming Time: 2007-06-08 Views: 1

Related post

  • First Look: Google Web Toolkit 2006-05-25

    Portions of this entry were first published in the SitePoint Tech Times #139. Have you written your own AJAX framework yet? It seems all the big boys are doing it. Microsoft is bringing us Atlas for ASP.NET, Yahoo!'s User Interface Library is open so

  • How do I clear the Google Gears cache for Firefox? 2012-02-11

    I just noticed that the following directory is taking up 701.7 MB on my hard drive. ~/Library/Caches/Firefox/Profiles/<my hash>.default/Google Gears for Firefox This has the following subdirectories and files. (49.2 KB) (0

  • @ GDD07: Google Gears – Bringing Server & Client Even Closer 2007-05-31

    This post comes from Google Developer Day in Sydney, Australia, where Aaron Boodman has just finished his presentation on Google's new enhancement to web applications, "Google Gears". With Sydney being on the right side of the planet, you saw it

  • Why on the first page google says there are thousands of results but on the last page there are less than a hundred? 2011-04-30

    Why on the first page google says there are thousands of results but on the last page there are less than a hundred? That's kind of a recursive google search that should be self explanatory. It did took me some time to tweak the sentence and trying t

  • A First Look at Beegit: The Collaborative Online Markdown Editor 2014-07-15

    Some time ago, I wrote about the current state of MarkDown editors. It was a disappointing report in which I name my favorites and the ways in which some excel and all of them lack. The landscape of MD editors is an interesting one – most having feat

  • Google Gears Browser Support 2009-07-18

    I've just tried to install Google Gears and been told that neither Firefox 3.5.1 nor Safari 4.0.2 are supported. The browser support page lists both browsers as options but on the basis of "or later" (so Firefox 1.5 +) so I assume that these ver

  • How to prevent Google Maps from using Google Gears under Chrome 2009-08-09

    I've just allowed Google Maps to access my current location by enabling Google gears for the same service. I want to know how do I disable Google Gears now, even for Google Maps or any other website that may ask for enabling Google Gears under chrome

  • Why does Google Gears only support XP/Vista? 2009-08-15

    I want to implement Google Gears in the application which I am developing. I've been using Windows 2000 for the past five years without any problems. Now for implementing Google Gears I need to update to XP/Vista. Why does Google Gears need XP/Vista?

  • How does Google Gears geolocation work? 2009-09-24

    I'm quite impressed by the Google Gears geolocation demo. It usually has an accuracy under 50 meters and besides authorizing Google Gears, I haven't revealed any other information concerning my location. What technologies are used to achieve such acc

  • Google Gears Going, Going, Gone? 2009-12-14

    The web has been awash with rumors about Google Gears for the past week or two. It appears Google has quietly dropped development of the system. Google Gears was released as a browser plug-in in May 2007. It provides a number of useful facilities pri

  • Why do Dailymotion videos appear first in google video searches? [on hold] 2016-02-17

    I noticed that if you search for videos, most of the time Dailymotion videos appear first in Google video searches. I find odd considering Google owns Youtube. Is this a natural result of Dailymotions SEO (not sure if right word) or something?

  • A First Look at Google Inbox 2014-10-28

    Last week, Google released a new invite-only product, Inbox. Inbox is an interface to Gmail - designed not as an alternative service, but as an alternative and augmented interface. As a super-heavy email user, I've been taking a look at it since day

  • A First Look at Safari 4 2009-03-03

    In the early days of the web new browsers appeared every few months. History is repeating itself and the browser market has never been so active or exciting. The latest offering is Apple's Safari 4, which is available as a beta download for Mac and W

  • Use Google Gears for Fast Client-Side Search 2008-07-17

    When Google's Gears offline web application API turned one year old six weeks ago, Google announced that it had signed its biggest external user to the Gears bandwagon: MySpace. The social network didn't use Gears to create an completely offline vers

  • Microsoft Office Online: A First Look 2010-05-26 offers Microsoft's online versions of Word, Excel and PowerPoint. The system is available to anyone with a Facebook account: while that's a controversial decision, it will allow you to share documents and collaborate with friends and colleag

  • Weird looking Google Earth 2011-05-04

    I just installed 64-bit Google Earth from .deb file downloaded from the official site. Now when I open Google Earth it looks all weird. Here's a screenshot: . How to get it right? --------------Solutions------------- Install ttf-mscorefonts-installer

  • Copied page but why it is ranking first in Google SERP? 2011-07-14

    I'd published an article with the permission of the author. But when I search in Google from India for title: "How to Test Payment Gateway Functionality" my site is ranking first eventhough it is a copy. Isn't there any penalty for this? -------

  • A First Look at React 2013-03-25

    For the past couple of years, Node.js has been drawing increasing amounts of attention as a promising web technology. While it has some strengths, like being event driven, some people just want to stick to PHP. For over a year now, however, there has

  • First Look at Thelia 2: Next Generation E-commerce? 2013-11-23

    Introduction Unless you're from France, you may not yet have heard about Thelia, an e-commerce system that is getting some international attention, due in no small part to the buzzwords thrown around in the media material released for the launch of t

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 1.632 (s). 13 q(s)