How does this Gel with Progressive Web Apps (PWA)


I’m trying to get my head around Stimulus and how it could work with service workers and PWA’s with the aim of making your app somewhat work offline or even totally offline if the app lends itself to that direction.

You’d be able to cache your JavaScript, CSS, fonts, images etc. but what about HTML? Is it possible to create an app shell i.e. a shared html container with some basic CSS inlined in the head tag, so that users get something to see instantly and then content being switched in the body tag.