The part of a web app that does not change often or not at all in some cases. This is the minimum code required to power the UI. It should load very quickly and be immediately cached.
The core app shell infrastructure should be cached locally using a service worker so on subsequent loads the PWA only needs to load the required (dynamic) data.
Watch the next video to learn more about the Application Shell:
Adds the ability to control how the app will appear to the user and how they can launch it.
The Service Worker Brower API sits between the client and the server, like a client-side proxy written in JavaScript.
Using a Service Worker
, assets can be cached locally so things load instantly regardless of network, the app can work offline, and can also be woken up when certain events happend and notify the user. These events don’t rely on the browser being open on the phone.
Things to watch our for:
name
, short_name
, icons
and start_url
.Star
the GitHub repo if you use and like this tool.