15
TAKING IT OFFLINE Maayan Glikser

Taking It Offline – Maayan Glikser

  • Upload
    500tech

  • View
    491

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Taking It Offline – Maayan Glikser

TAKING IT OFFLINE

Maayan Glikser

Page 2: Taking It Offline – Maayan Glikser

Maayan Glikser

- Github addict - Hardcore metal fan - Converted from dogs to cats

Frontend Developer @ 500Tech

Page 3: Taking It Offline – Maayan Glikser

WHY OFFLINE MATTERS

Page 4: Taking It Offline – Maayan Glikser

AppCache Sucks

http://alistapart.com/article/application-cache-is-a-douchebag

Page 5: Taking It Offline – Maayan Glikser

What is a Service Worker?

Page 6: Taking It Offline – Maayan Glikser

Service Worker

Cache

Network

Page 7: Taking It Offline – Maayan Glikser

LimitationsCannot access the DOM

No global state (unloads when not needed)

iFrames are separate documents (sandbox)

Directory Scope

Requires SSL

Page 8: Taking It Offline – Maayan Glikser

WHY DO I NEED SSL

Page 9: Taking It Offline – Maayan Glikser

Man In The Middle Attacks

Page 10: Taking It Offline – Maayan Glikser

Service Worker Life Cycle

Page 11: Taking It Offline – Maayan Glikser

Is Service Worker Ready?

https://jakearchibald.github.io/isserviceworkerready/

Page 12: Taking It Offline – Maayan Glikser

LIVE CODING

Page 13: Taking It Offline – Maayan Glikser

Cool Things You Can DoCustom error pages (no connection, server error)

Timeout 3rd party requests

CDN Failover

Stale While Revalidate

Resource Prioritization/Scheduling

Page 14: Taking It Offline – Maayan Glikser

The FuturePush

Background Sync

Geofencing

Page 15: Taking It Offline – Maayan Glikser

Read our blog:http://blog.500tech.com

Maayan [email protected]