Delivering the good message of local storage

As you might know there are an incredible amount of advent calendar blogs out at the moment each delivering one cool article for each day of December until Christmas.

Today (6/12/11) two calendar blogs delivered an article of mine talking about the benefits of using local storage in browsers and how to implement it.

You can find the English version on the 24ways.org calendar and a German translation at the Webkrauts calendar.

In essence, the article explains why it is a good idea to use local storage, explains how to use it, how to work around the issue that local storage can only store strings and gives example code on how to speed up web service use by caching information client-side much like you would do it on a server.

Have a read and go speed up your own solutions by using what browsers provide you these days.

About Chris Heilmann

Evangelist for HTML5 and open web. Let's fix this!

More articles by Chris Heilmann…


2 comments

  1. M

    The real issue with localStorage and Firefox is : the localStorage is emptied everytime my Firefox is crashing. So much for something supposed to be persistent.

    December 7th, 2010 at 06:55

  2. brian

    @M: I suspect the real issue is rather that the browser is crashing. It should be no surprise at all that some data would be lost in such cases. Now, why your browser is crashing is a whole other topic. And may be due to the state of your operating system for all anyone knows.

    January 2nd, 2011 at 16:40

Comments are closed for this article.