Google's offline web apps click into gear

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

NEWS

Google engineers have enabled what internet surfers for years have yearned for — web applications that work offline.

The search giant on Wednesday launched Google Gears, a browser plug-in that will let people run web applications when they're connected to the internet or not.

The company released the source code for the Google Gears software in conjunction with Google Developer Day, a day-long conference in 10 locations.

The goal of Google Gears is to create a single, standardised way to add offline capabilities to web applications, said Linus Upson, engineering director at Google.

Competition

Blogger at Large competition
Blogger at Large

The deadline's fast approaching on our contest to win a trip to San Francisco and a Centrino Pro laptop to blog from the Intel Developer Forum. To enter, just start posting entries to our On the Road group blog.

Read more +

The initial code is aimed at JavaScript developers who write Ajax-style web applications. It runs on Internet Explorer on Windows; Firefox on Windows, Mac OS and Linux; and on the Safari Mac OS browser.

Google expects to have a consumer-ready release of Google Gears, which will be under 1MB in size, "within months". It also expects to submit the code to a standards body so that it will eventually be built into all standards-compliant browsers, Upson said.

"It's been a long time since the web has gained new fundamental capabilities. I think it's been about 10 years," said Upson. One of the key capabilities of Ajax development — XMLHttpRequest — came out in 1998 and took years to catch on, in part because of applications such as Google Maps.

Google engineers took on the task of bringing offline access to web browsers because customers of its hosted web applications complained about not being able to work when disconnected, Upson said.

"One of the reasons we're doing Gears is that developers here at Google have really pushed the envelope on what can be done in the browser so engineers are hitting barriers harder and faster," he said.

The first application to have offline access through Google Gears is Google Readers, the company's RSS reader. Once people install the browser plug-in, they can read RSS content when they're offline and synchronise with the RSS feed provider when they get back online.

As part of the announcement, Google said Google Gears has been endorsed by the Mozilla Foundation, makers of the open-source Firefox browser, as well as Flash developer Adobe Systems and Opera Software, which makes the Opera browser.

Under the covers
By releasing the Google Gear code, the company hopes to get feedback from developers before releasing a consumer plug-in.

The software itself has three components — a local web server which runs in the browser, the open-source database SQLite for storage, and browser extensions that allow multiple JavaScript jobs to run in parallel.

With that architecture, end users will be able to run web applications even if they have flaky network connections or if the web server they are accessing is bogged down. Having a browser capable of running multiple JavaScript scripts, or threads, means that the browser is less likely to get locked up.

"What we wanted to enable was to make applications that essentially run off local data even when you're connected to the network, because defining or detecting that [connection state] is very hard," said Upson.

The local SQLite database, while small in size, is capable of saving gigabytes of data, although Google intends to set up Google Gears so web application providers have to ask permission from users to store data locally.

Google engineers have already started work on adding full-text searching to SQLite, Upson said.

Other companies have taken on the challenge of making web applications run offline before but there still lacks a generic, widely used method.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

1 hour ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

2 hours ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

4 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

5 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

7 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

7 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

7 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

8 hours ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

10 hours ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

16 hours ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

18 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

18 hours ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

19 hours ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

20 hours ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

21 hours ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

21 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

21 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

22 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

22 hours ago by ramwellian on Cloud computing security: no more oxymoron?
BugStalker

"Interesting thought ... If you installed Win7 as a dual boot on a machine that previously only had Linux, and it wrecked your Linux installation,...

23 hours ago by BugStalker on Windows 7 Declares War on GRUB