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
既存サイトをPWA化した話
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
LuckOfWise
April 17, 2018
Technology
2.5k
2
Share
既存サイトをPWA化した話
SonicGarden Tech #1 岡山 で発表した資料です。
実際のサイトを例にPWA化していくまでの流れを説明しました。
LuckOfWise
April 17, 2018
Other Decks in Technology
See All in Technology
Choose your own adventure in agentic design patterns
glaforge
0
130
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
390
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
9
1.9k
ARIA Notifyについて
ryokatsuse
1
120
EBS暗号化に失敗してEC2が動かなくなった話
hamaguchimmm
2
200
Keeping Ruby Running on Cygwin
fd0
0
140
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
270
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.3k
AWS DevOps Agentはチームメイトになれるのか?/ Can AWS DevOps Agent become a teammate
kinunori
6
720
Good Enough Types: Heuristic Type Inference for Ruby
riseshia
0
180
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
290
最新の脅威動向から考える、コンテナサプライチェーンのリスクと対策
kyohmizu
1
700
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Music & Morning Musume
bryan
47
7.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
520
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
120
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
GraphQLとの向き合い方2022年版
quramy
50
15k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
Thoughts on Productivity
jonyablonski
76
5.1k
Transcript
既存サイトをPWA化した 株式会社ソニックガーデン 野上 誠司
自己紹介 野上 誠司(のがみ せいじ) @LuckOfWise 岡山在住 気さくなプロトタイププログラマー まかない店長
お品書き • ベタなHTMLで作られたサイトをPWA化 • WordPressで作られたサイトをPWA化 • Railsで作られたサイトをPWA化
ベタなHTMLで作られたサイトを PWA化
方針 • とりあえずLighthouseでスコアが100になる ことを目指す • 細かい説明は置いておく
None
None
Manifest.json
None
None
None
theme-color
None
None
Service Worker
None
None
Service Workerが登録されていることを確認
None
Cache
Cache方針 • 基本的にはキャッシュしたものを返す • まだキャッシュしてないものにアクセスしたらキャッシュする • コンテンツの内容を変えたらキャッシュのkeyを変えて古いのを削除する
None
None
Chromeでキャッシュされてるの確認するのはこのへん見るよ
全体の差分はこちら https://github.com/osokayama/osokayama.gi thub.io/pull/104
WordPressで作られたサイトを PWA化
None
None
プラグインインストールでおk
None
None
None
Railsで作られたサイトをPWA化
None
None
gem 'serviceworker-rails'
rails g serviceworker:install
manifest.json, theme-color
None
push
push server ブラウザ Web Service Worker app server ① endpoint取得
②endpoint送信 ③pushをリクエスト ④push
OneSignal
色んなデバイスや複数人に一気に送るのに便利
URLを設定していると通知をタップすると該当の WPAアプリが開く
参考サイト • Manifestファイルについて ◦ https://developers.google.com/web/fundamentals/web-app-manifest/?hl=ja • SericeWorker ◦ https://developers.google.com/web/fundamentals/primers/service-workers/?hl=ja •
cache ◦ https://developer.mozilla.org/en-US/docs/Web/API/Cache • client, clients ◦ https://developer.mozilla.org/en-US/docs/Web/API/Client ◦ https://developer.mozilla.org/en-US/docs/Web/API/Clients • Navigator ◦ https://developer.mozilla.org/en-US/docs/Web/API/Navigator