Wednesday, February 27th, 2008
>Ben Lisbakken, who sits 100 feet away from me, developed gearsAJAXHelper, a library that bridges the AJAX search and feed APIs with Gears, to get a speed improvement:
The key/value pair database feature let’s you store the query/results as a key/value pair. Then, the next time the query is made, the results can be served from the database while fresh results are being retrieved. This dramatically reduces the latency in queries/feed grabs.
The (optional) automatic cacheing of resource files will make it so that each time the user visits your webpage they will be getting resources served from their Google Gears cache, not new versions from the internet. Be careful when using this feature, as you might not want stale content to be served. There is also a refresh function, to clear the Google Gears cache of old files.
You can take a look at the sample, that saves the content for presidential candidates so if you click back on an area, you get instant loads.
The bulk of the API is:
- gearsAJAXHelper.initialize("election", "election", false);
- gearsAJAXHelper.storeKeyVal(key, value);
This example shows how you can optional add super-caching to your applications with technology such as Gears. It ‘aint just about offline!
There will be two sessions — one from 2:00PM – 5:30PM and another from 6:00PM – 10:00PM. You are welcome to stay for both. Please RSVP
Where: Google Campus: 1600 Amphitheatre Pkwy, Mountain View, CA 94043. It will be held in the Seville Tech Talk room.
Posted by Dion Almaer at 7:56 am