Tag Archives: Local Storage

Working with HTML5 local storage and use offline functionality

Recently I have done some research about HTML local storage and the offline functionality for websites in preparation for a project. In this article I want to share my experience with you. All of the content discussed in this article was tested in Google Chrome 27, Firefox 22, and Internet Explorer 10.

This article will only show some aspects. For more information and examples have a look at the literature listed beneath.

Local Storage

In the past native applications had some capabilities which were missing in the web area. One of this capabilities was to store data on the client. A solution for this problem was the usage of cookies. This solution introduced some problems, especially if you have security in mind. An alternative proposed by the World Wide Web Consortium (W3C) is called Web Storage. In this section I want to discuss some of the basics of one approach coming from the Web Storage proposal: local storage. Local storage, which is sometimes referred to as DOM Storage, is a simple persistent key-value storage directly in the browser. An important advantage of local storage is that it is natively implemented in browsers, which means that it is available even when external plug-ins are not.

Continue reading