Skip to content Skip to sidebar Skip to footer

Is Localstorage The Right Choice For This Webapp?

I'm interested in building a small offline webapp and I'm looking for some advice. Here's the basics of what I want it to do Create reports that, initially, will just have a name

Solution 1:

localstorage will work just fine for this, but don't think of it as a robust solution.. It's just a basic key/value store and won't be very performant with thousands of complex things going on.

Check out the excellent Dive into HTML5 guide on localstorage: http://diveintohtml5.info/storage.html

Solution 2:

Link to the localstorage apis

Yes localstorage would be perfect for you application. It would allow your application to have no need to connect to a server at all. Keep in mind that local storage does have maximums on the amount of data that can be stored.

EDIT: Using JSON.stringify() on can convert complex javascript objects to json which can be storage and retrieved with ease inside of local storage.

Post a Comment for "Is Localstorage The Right Choice For This Webapp?"