Chapter 16. Offline web applications

In the preceding chapter, you learned about the most widely used offline solution, web storage, but it’s not always the best tool for the job. At times, you might need more advanced features such as true asynchronous support, indexing for faster searching, or transactions. Those features are available in the other offline storage mechanisms.

This chapter begins by looking at one option that provides all the power of a relational database, Web SQL. An alternative that’s more of an object database, IndexedDB (Indexed Database), is covered next; it gives you the power of indexing and transactions without the need to set up a formal relational structure. Although both those solutions are good for typical data concerns, ...

Get Training Guide: Programming in HTML5 with JavaScript and CSS3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.