Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Web over ServiceWorker
Search
Jxck
February 25, 2017
Technology
6
6.5k
Web over ServiceWorker
Inside Frontend #1 2017/2/25
Jxck
February 25, 2017
Tweet
Share
More Decks by Jxck
See All by Jxck
IE Graduation (IE の功績を讃える)
jxck
21
15k
IE Graduation Certificate
jxck
6
5.7k
RFC 9111: HTTP Caching
jxck
0
520
tc39_study_2
jxck
1
1.2k
IETF における ABNF とプロトコルパーサの話 / ABNF for Protocol Parser @ IETF
jxck
2
870
Web Components 元年 v3 / Web Components first year v3
jxck
1
830
Periodic Background Sync
jxck
0
440
Podcast over PWA
jxck
0
190
Yearly Web 2019
jxck
0
130
Other Decks in Technology
See All in Technology
20240418_Google ColabにLLMが搭載されたようなのでPython x データ分析の勉強方法を考えてみる
doradora09
0
150
Cypress or Playwright?
rainerhahnekamp
0
130
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
0
270
20分で完全に理解するGrafanaダッシュボード
hamadakoji
3
730
Google Cloud Next '24 Recap(Cloud Run/k8s)
mokocm
0
250
本当のAWS基礎
toru_kubota
0
540
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
110
チームでロジカルシンキングに改めて向き合っている話 〜学習環境と実践⽅法〜
sansantech
PRO
3
2.9k
KubeConにproposalを送りたい人へのアドバイス
sat
PRO
3
260
R3のコードから見る実践LINQ実装最適化・コンカレントプログラミング実例
neuecc
2
400
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
360
JAWS-UG Bedrock Claude Night
yamahiro
3
620
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
Designing for Performance
lara
601
67k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
Navigating Team Friction
lara
178
13k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
2
1.3k
Thoughts on Productivity
jonyablonski
58
3.8k
Done Done
chrislema
178
15k
Atom: Resistance is Futile
akmur
259
25k
A Tale of Four Properties
chriscoyier
151
22k
Being A Developer After 40
akosma
57
580k
Why Our Code Smells
bkeepers
PRO
331
56k
Writing Fast Ruby
sferik
621
60k
Transcript
Web over ServiceWorker Inside Frontend #1 2017/2/25 Jxck
• id: Jxck • github: Jxck • twitter: @jxck_ •
blog: https://blog.jxck.io • podcast: http://mozaic.fm • Love: music Jack
Web vs PC App 3
4
5
Web vs Mobile 6
7
8 Capability against • Native/Low API • Installable • Performance
• Permission • Offline • etc
9
10 more...
11
mozaic.fm ep17 12 Service Worker w/ @kinu, @nhiroki_ http://mozaic.fm/post/117004083098/17-service-worker
13 What’s for ?
Service Worker is API for Offline Support 14
Service Worker is Platform for New Capability 15
16 Architecture
17 Proxy as a Service Worker onfetch fetch() response respondWith()
Cache API Browser Cache add()
18 Pusher as a Service Worker onpush
19 TaskManage as a Service Worker onsync onsync !== on-oline/offline
onsync: trigger based on device status network, battery etc onoff/online: toggle of network status
20 Worker as a Service Worker onmessage onmessage
Workers Class Hero I'm free to be whatever I 何になるのも俺の自由だ
Whatever I choose 何を選ぶのも俺の自由だ And I'll hook the request if I want その気になればリクエストだってフックしてやる 21 https://youtu.be/zUADzarhFyA
App Shell 22
23
24 Cache Fetch or Storage
25 Proxy as a Service Worker onfetch fetch() article respondWith()
Cache API Browser Cache get() & merge
Life Cycle 26
27
28 Works even if Page, Tab, Browser doesn’t open (Android)
Tutorials 29 • 中級者向け Service Worker Tutorial • Service Worker
registration/lifecycle
Updates 30
Foreign Fetch 31
Foreign Fetch 32 Link: </worker.js>; rel="serviceworker"
Scope 33 • Scope is single deep match • Single
Controller for Client
Micro Service Workers 34
Install as APK 35
Android APK 36 Build APK then Install
Navigation Preload 37
Navigation Preload 38 fetch Service-Worker-Navigation-Preload: true preloadResponse response
Background Fetch 39
40 Background Fetch Large fetch response UPloading/Downloading Large Media Files
More New Caps 41
42 Capabilities Program Strategy and Goals Q1/Q2 2017 • A2HS
• WebAPKs • Backgournd Fetch • Silent Push • QR Code Scan • Web Share • Origin Trials v2 • 2F-Auth etc
Platform as a ServiceWroker 43
Jack thanks