Learn about technologies involved in creation an offline web app. Offline storages: web storage, IndexedDB, WebSQL, File API. Application cache: app cache and service workers.
17. App Cache!
Pros & Cons
• Cross-browser!
• Lots of pitfalls!
• Hard to debug!
• Deprecated!
18. Service Workers!
A script is running in the background!
• Control over requests & responses!
• Runs even when website is not open!
• No access to DOM!
• HTTPS Only!
24. Offline Web Tools!
• Offline.js!
alerts and catches AJAX requests when offline !
• localForage!
localStorage-like API for offline storage !
• IDBWrapper!
cross-browser IndexedDB API wrapper !
• PouchDB!
offline store synchronizing with CouchDB!
25. Offline App!
App Cache!
Service Worker!
App Cache & Service Worker!
Offline Storage!
localForage!
IndexedDB (IDBWrapper)!
Conclusion!