Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Service Worker and the Offline Web (Lightning T...
Search
Lewis Cowper
March 07, 2015
Technology
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Service Worker and the Offline Web (Lightning Talk)
Lewis Cowper
March 07, 2015
Other Decks in Technology
See All in Technology
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
ストレスなくAIと付き合いたい!こんなときどうしてる?
namiki64
3
490
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
170
パッチ更新でterraform initが落ちた日
grimoh
1
140
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
150
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1k
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
300
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
6k
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
110
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
7.2k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Google's AI Overviews - The New Search
badams
0
1.6k
My Coaching Mixtape
mlcsv
0
360
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Accessibility Awareness
sabderemane
1
250
Transcript
SERVICEWORKER And the Offline Web
#OFFLINEFIRST
"Oh no! My signal's gone! Now I don't have access
to my content" — The internet
"We should cache things!" — Developers
"Hey, I've heard about #offlinefirst. Can we do that in
the next sprint?" — Management
AppCache
— AppCache
Turns out APPCACHE has problems
Your use case doesn't fit into the way APPCACHE can
be used?
ServiceWorker
None
None
ServiceWorker Handle resource requests with a set of durable caches
that can be programmatically controlled.
ServiceWorker ▸ JavaScript worker, can't access the DOM directly COMMUNICATES
WITH PAGES IT CONTROLS VIA THE POSTMESSAGE INTERFACE
ServiceWorker ▸ JavaScript worker, can't access the DOM directly ▸
Programmable network proxy CONTROL HOW NETWORK REQUESTS FROM YOUR PAGE ARE HANDLED
ServiceWorker ▸ JavaScript worker, can't access the DOM directly ▸
Programmable network proxy ▸ Doesn't rely on global state, but can access IndexedDB TERMINATES WHEN NOT IN USE, AND RESTARTS WHEN NEEDED
ServiceWorker ▸ JavaScript worker, can't access the DOM directly ▸
Programmable network proxy ▸ Doesn't rely on global state, but can access IndexedDB ▸ Uses promises extensively
None
ServiceWorker
ServiceWorker 1. Register your ServiceWorker
ServiceWorker 1. Register your ServiceWorker YOU'RE ON YOUR WAY THERE
ALREADY.
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do THIS IS THE FUN PART
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do ▸ Offline Cookbook
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do ▸ Offline Cookbook AWESOME AND FANTASTIC AND WORTH A TALK BY ITSELF.
ServiceWorker Magic and crazy science
ServiceWorker
ServiceWorker
ServiceWorker
ServiceWorker
ServiceWorker
ServiceWorker
THANKS! @LEWISCOWPER