Professional Documents
Culture Documents
Intro To PWA - Mozilla Tech Speaker
Intro To PWA - Mozilla Tech Speaker
Intro To PWA - Mozilla Tech Speaker
Hi.
2
Tweet at Us!
#mozilla
#moztechspeakers
3
Me.
Alaa Shaheen
@FloweryCoder https://www.linkedin.com/in/alaashaheen1/
Email: alaa.shaheen2012@gmail.com
4
What is PWA
➔Web apps are the websites, that are using web technologies, and
they have the capabilities to act like a mobile app.
➔Top level in task switcher
➔Top level in home screen
➔Top level in the notification tray
5
➔"A progressive web application is basically a
website built using modern web technologies
but acts and feels like a mobile app"
6
Why we need to go into Progressive web apps?
7
Using the mobile apps,,
8
FlipKart
9
Progressive Web Apps
➔Linkable: should use the URI to indicate the current state of the application.
➔App-like: like a native app and be built on the application shell model, with minimal
page refreshes.
10
Progressive Web Apps
11
Progressive Web Apps
12
Characteristics:
➔Add to home
➔Splash Screen
➔App Shell
13
14
Technologies behind it?
➔Service Workers
➔Application Shell
➔Web App Manifest File
15
Service Workers
16
Service Workers
17
Code Example
18
Code Example
19
Code Example
20
Code Example
21
Code Example
22
Code Example
23
Code Example
➔Fetch: This event helps serve the app shell from the
cache.
➔It then either responds with the cached version, or
uses fetch to get a copy from the network.
24
Code Example
25
Web app Manifest File
26
Application Shell
27
Application Shell
28
App Shell
29
Offline Mode
30
App Shell
31
App Shell
32
How to Add Data to the App?
33
●Eliminate the need for HTML request
●But we need JS to run the data
●We can cache data after loading for further use
34
Storage data
35
Storage data
➔Cache:
◆Ready to use
◆Asynchronous
◆Fast
◆Not available to all browsers
36
Storage data
➔Indexed DB:
◆Fast
◆Asynchronous
◆Supported on all browsers
◆Check Mozilla develop website for more info.
37
Appendix
Resources
39
Thanks.
Alaa Shaheen
@FloweryCoder https://www.linkedin.com/in/alaashaheen1/
Email: alaa.shaheen2012@gmail.com
40
Q&A