Thursday, March 12, 2015

HTML5 Local Storage Revisited

Local storage is part of the HTML5 Web Storage API and it allows you to store data on the browser. Unlike cookies, data stored using local storage isn’t sent back to the server. All data stays on the client, and you can currently store from 2MB to 10MB. This limit is tied to the specific browser, protocol (HTTP or HTTPS), port, and top level domain in use.


In this article, we’ll discuss how to use this API to improve the performance of a website. I’ll assume that you know what local storage is and the methods exposed, so if you need a refresh I suggest you to read the article An Overview of the Web Storage API.


Available disk space


Before we start the discussion, I want to give you an overview of the available disk space in major mobile and desktop browsers. The following tables are based on the article Working with quota on mobile browsers.


Continue reading %HTML5 Local Storage Revisited%




by Luis Vieira via SitePoint

No comments:

Post a Comment