Learn about the building blocks of creating an offline-enabled and re-engaging Progressive Web App: Service Worker, Push, Fetch, and Cache. We'll cover each of these web features and how they provide performance benefits and help maintain functionality even under poor network conditions as well as how to bring users back via push notifications.
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Building performant and re engaging web apps with service
1. Building
performance and
re-engaging web
apps with Service
Worker
(Ali Alabbas, May
7- 9 2018, Seattle)
Learn about the building blocks of creating an offline-enabled
and re-engaging Progressive Web App: Service Worker, Push,
Fetch, and Cache. We'll cover each of these web features and
how they provide performance benefits and help maintain
functionality even under poor network conditions as well as
how to bring users back via push notifications.
2. How to build offline-capable,
performant, and re-engaging web apps
1. Why the web is a first-class platform
2. Why old web features didn’t succeed with solving offline
3. How to enable key app scenarios using new web features
Offline & performance: Service Workers, Fetch, Caches
Re-engagement: Push Notifications
3. Start and run really REALLY fast!
Work across a variety of devices, screen sizes, etc.
Run over HTTPS
Work offline / reliably under poor network conditions
Can send push notifications
Provide better device integration
4. Start and run really REALLY fast!
Work across a variety of devices, screen sizes, etc.
Run over HTTPS
Work offline / reliably under poor network conditions
Can send push notifications
Provide better device integration
A list of PWA principles
Pwa means progressive web apps
there’s a lot of gap
Native app capable of doing with web
A bunch of contributors talk to World Wide Web Consortium and came up to fill some of this gaps
App cache
Normal langsung ke network
Ditambah fetch layer
how to we get back control to web devs
Better than web workers
JavaScript that runs in the background
page usually send response to network
Send request and get response
Service workers, back to the page and get the response
Dengan service worker pula lah waktu muat web menjadi lebih cepat.
Teknologi service worker memiliki mekanisme untuk mengontrol asset yang akan di cache serta menyediakan custom permintaan ke jaringan sehingga dapat memberikan pengalaman akses secara offline bagi pengguna.
Tetapi untuk dapat menggunakannya pertama kali pengguna harus mengakses website tersebut. Setelah semua asset ter-cache oleh service worker, sekalipun koneksi terputus pengguna tidak akan melihat gambar offline dinosaurus. Kira-kira seperti ini alur kerja service worker
so we can do something with those saved responses and going back to the page