Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 localStorage

what could be the real practical use of HTML5 localStorage?

like image 413
dazzle Avatar asked Apr 13 '11 19:04

dazzle


1 Answers

  1. Caching data from an online web application so that the application can be used in offline scenarios (albeit with only the cached data).

  2. Persisting user specific UI state like what page a user is on, scroll position, etc. (if you really wanted to do that kind of thing).

  3. Persisting transient data in a web application (i.e. A user partially fills out a form and then navigates to another page in your application then decides to come back. You can allow them to pick up where they left off).

  4. Allow a user to enter data in your app while offline and then send the data to the server in the background next time the user is online.

like image 63
Justin Niessner Avatar answered Nov 07 '22 15:11

Justin Niessner