O'Reilly logo

Learn HTML5 and JavaScript for iOS by Scott Preston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  12

Offline Apps and Storage

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required