299 Views
Single page web applications are on the rise that use sophisticated HTML5, Javascript, CSS3. Local Storage is useful for these applications to store application specific data upto 5 MB. This post describes how to use Local storage in your applications.
The biggest problem I have run into with local storage is that no API exists for determining how much space you have currently, or more importantly how much you have left available. The current generation of browsers are also inconsistent in how they handle running out of local storage space: It's not easy recover when you attempt to put something into local storage that will exceed its capacity.