reading-notes

Code Fellows courses Notes

This project is maintained by QamarAlkhatib

Local Storage

One area where native client apps have had an advantage over online applications is local storage. Every HTTP request includes cookies, which slows down your online application by transferring the same data over and over again. Every HTTP request includes cookies, which sends data across the internet unencrypted (Unless your entire web application is SSL-encrypted) Cookies can only store roughly 4 KB of data, which is enough to slow down your program, but not enough to be very useful. what we want is a lot of client storage space that lasts longer than a page refresh and isn’t sent to the server

A Brief History of Local Storage Hacks Before HTML5

Introducing HTML5 Storage

“HTML5 Storage” is a specification named Web Storage, which was at one time part of the HTML5 specification proper, but was split out into its own specification for uninteresting political reasons.

Also, almost evey browser with latest version supports HTML5. here is an image that show you the html5 browsers.

Using HTML5 Storage

You store data based on a named key, then you can retrieve that data with the same key in JavaScript.