Progressive Web App
(PWA)
{Intro}
By: AKASH
Agenda
Overview
Technologies Behind
Basic Need
App Shell
Storage
Service Worker
Caching Strategies
Web App Manifest
Overview
Progressive Web App (PWA) is a term used to denote web apps that use the latest web
technologies. Progressive web apps are technically regular web pages (or websites) but
can appear to the user like traditional applications or (native) mobile applications.
This new application type attempts to combine features offered by most modern
browsers with the benefits of mobile experience.
Technologies Behind
Service Workers
A JavaScript file that runs
separately from the main
browser thread
(XMLHttpRequest),
intercepting network
request caching or
retrieving resource from
the cache and delivering
push messages.
Web App Manifest File
A JSON file that gives you
the ability to control how
your app appears to the
user in areas where they
would expect to see apps,
direct what the user can
launch, and define its
appearance at launch.
Basic Need
Project
HTML
JavaScript
Chrome Extensions:
Web Server (Run project on local machine)
Lighthouse (Testing the app)
App Shell
The application shell is the minimum HTML, CSS and JavaScript required to power a
user interface. A native mobile application includes the application shell as part of its
distributable, whereas websites ordinarily request this over the network.
Storage
Local Storage
Easy to User
Synchronous
Not Transaction
Support Most of the
Browser
Caches Object
Easy to use
Asynchronous
FAST
Not Transaction
Not Support in Most of
the Browser
IndexedDB
Complex Data
Asynchronous
Fast
Transactional
Support in Every
Browser
Service Worker
A JavaScript file that runs separately from the main browser thread (XMLHttpRequest),
intercepting network request caching or retrieving resource from the cache and delivering push
messages.
Service Worker Life Cycle
Caching Strategies
Cache first, then Network
Network first, then Cache
Cache Only
Network Only(Not Caching Strategy)
Cache and Network Race
Cache and Network
Web App Manifest
The web app manifest is a simple JSON file that gives you, the developer, the ability to
control how your app appears to the user in areas where they would expect to see apps
(for example, a mobile device's home screen), direct what the user can launch, and
define its appearance at launch.
Questions?
Thank You

Progressive Web-App (PWA)

  • 1.
  • 2.
    Agenda Overview Technologies Behind Basic Need AppShell Storage Service Worker Caching Strategies Web App Manifest
  • 3.
    Overview Progressive Web App(PWA) is a term used to denote web apps that use the latest web technologies. Progressive web apps are technically regular web pages (or websites) but can appear to the user like traditional applications or (native) mobile applications. This new application type attempts to combine features offered by most modern browsers with the benefits of mobile experience.
  • 4.
    Technologies Behind Service Workers AJavaScript file that runs separately from the main browser thread (XMLHttpRequest), intercepting network request caching or retrieving resource from the cache and delivering push messages. Web App Manifest File A JSON file that gives you the ability to control how your app appears to the user in areas where they would expect to see apps, direct what the user can launch, and define its appearance at launch.
  • 5.
    Basic Need Project HTML JavaScript Chrome Extensions: WebServer (Run project on local machine) Lighthouse (Testing the app)
  • 6.
    App Shell The applicationshell is the minimum HTML, CSS and JavaScript required to power a user interface. A native mobile application includes the application shell as part of its distributable, whereas websites ordinarily request this over the network.
  • 7.
    Storage Local Storage Easy toUser Synchronous Not Transaction Support Most of the Browser Caches Object Easy to use Asynchronous FAST Not Transaction Not Support in Most of the Browser IndexedDB Complex Data Asynchronous Fast Transactional Support in Every Browser
  • 8.
    Service Worker A JavaScriptfile that runs separately from the main browser thread (XMLHttpRequest), intercepting network request caching or retrieving resource from the cache and delivering push messages.
  • 9.
  • 10.
    Caching Strategies Cache first,then Network Network first, then Cache Cache Only Network Only(Not Caching Strategy) Cache and Network Race Cache and Network
  • 11.
    Web App Manifest Theweb app manifest is a simple JSON file that gives you, the developer, the ability to control how your app appears to the user in areas where they would expect to see apps (for example, a mobile device's home screen), direct what the user can launch, and define its appearance at launch.
  • 12.
  • 13.