Upload
500tech
View
491
Download
0
Embed Size (px)
Citation preview
TAKING IT OFFLINE
Maayan Glikser
Maayan Glikser
- Github addict - Hardcore metal fan - Converted from dogs to cats
Frontend Developer @ 500Tech
WHY OFFLINE MATTERS
AppCache Sucks
http://alistapart.com/article/application-cache-is-a-douchebag
What is a Service Worker?
Service Worker
Cache
Network
LimitationsCannot access the DOM
No global state (unloads when not needed)
iFrames are separate documents (sandbox)
Directory Scope
Requires SSL
WHY DO I NEED SSL
Man In The Middle Attacks
Service Worker Life Cycle
Is Service Worker Ready?
https://jakearchibald.github.io/isserviceworkerready/
LIVE CODING
Cool Things You Can DoCustom error pages (no connection, server error)
Timeout 3rd party requests
CDN Failover
Stale While Revalidate
Resource Prioritization/Scheduling
The FuturePush
Background Sync
Geofencing
Read our blog:http://blog.500tech.com
Maayan [email protected]