Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
There's a variety of ways to speed up your application by cacheing certain amounts of data on the client. Before HTML5 you could only store cookies or rely on the browser's cacheing mechanism. Now you can implement a variety of ways, by storing long-term data via the localStorage object, session data via the sessionStorage object, or even an entire application via applicationCache. Depending on the kind of application you are writing you may use none or all of these features.
The first mechanism I discuss is how to take your entire application offline, or in the case of no network, a way to make your web app work entirely in offline mode. Some HTML5 books talk about WebSQL, or the ability to access SQLite via JavaScript. I do not talk about Web SQL because this API is no longer active. If you want to find out more about this API you can reference it at: http://www.w3.org/TR/webdatabase/. Personally I found this a very complicated means for accessing data on the client when compared to local and session storage options discussed later in the chapter.