app that uses new APIs to provide an app-like experience for users. • It involves a few web standards, namely; • Service Worker. Which enable true reliability on the web. What I mean by that is I can build an app that as long as you loaded it while you were online, from then on it will always open, even if you’re not. This puts it on equal footing with other apps. • HTTPS. Requires encrypted connections • Web App Manifest. A simple JSON file that describes your application. What icons to use is someone adds it to their home screen, what its name is, etc
PWAs can offer push notifications, integration with other apps (and the web), location services. • PWAs can use device features like cameras, data storage, GPS and motion sensors, face detection, and more. • The point is to create something that will work when there’s no internet connection, and make it possible to launch it right from the Home screen, just like a native app.
a site if it does not load within 3 seconds on a mobile device. • Sites that loaded within 5 seconds earned twice as much ad revenue as slower sites. • Most sites take about 19 seconds to load on a 3G network. * According to an expansive Doubleclick by Google user study.
your application/site • Make your app "offline-first" • Act as the base for advanced features • Notifications API • Push API • Background Sync API • Channel Messaging API
the service worker is not necessarily a trivial process. It is, by design, a low-level API and there can be a fair bit of code involved. While you could write your own service worker code, there are some libraries provided that automate many of the details for you while also following the best practices and avoiding common gotchas. • Earlier versions of PWA used the sw-toolbox library and sw- precache module that are built on top of the service worker primitives, like the Cache and Fetch APIs. These tools abstract low- level complexities and make it easier for developers to work with service workers.
successor to sw-precache and sw-toolbox. It is a collection of libraries and tools used for generating a service worker, precaching, routing, and runtime-caching. Workbox also includes modules for easily integrating background sync and Google analytics into your service worker.