More Related Content
Similar to HTML5 JS APIs (20)
More from Remy Sharp (20)
HTML5 JS APIs
- 5. APIs
•Canvas •Geolocation
•Drag & Drop •Local Storage
•History •Selectors
•Inline Editing •Server Events
•Messaging •Web Sockets
•Of ine Apps •Workers
•Video & Audio
- 6. APIs
•Canvas •Geolocation
•Drag & Drop •Local Storage
•History •Selectors
•Inline Editing •Server Events
•Messaging •Web Sockets
•Of ine Apps •Workers
•Video & Audio
- 7. APIs
•Canvas •Geolocation
•Drag & Drop •Local Storage
•History •Selectors
•Inline Editing •Server Events
•Messaging •Web Sockets
•Of ine Apps •Workers
•Video & Audio
- 8. APIs
•Canvas •Geolocation
•Drag & Drop •Local Storage
•History •Selectors
•Inline Editing •Server Events
•Messaging •Web Sockets
•Of ine Apps •Workers
•Video & Audio
- 9. APIs
•Canvas •Geolocation
•Drag & Drop? •Local Storage
•History •Selectors
•Inline Editing •Server Events
•Messaging •Web Sockets
•Of ine Apps •Workers
•Video & Audio
- 34. Cache
•First line: CACHE MANIFEST
•Requires text/cache-manifest
•Recommend using versioning
•window.applicationCache
- 37. Cache
•On load will hit my.manifest
•Change manifest: trigger reload
•applicationCache.update() force
- 38. Cache
•On load will hit my.manifest
•Change manifest: trigger reload
•applicationCache.update() force
•Cache events
- 43. function online() {
if (navigator.onLine == false) {
// gone offline
} else {
// else we're online
}
}