[w3c/ServiceWorker] Fully inline (.js + json manifest) service worker (#1392)

I have an app that runs on a standalone basis from within a .html file as all the code and dependencies are inline including the javascript and css. However, even though the app works the same whether one is connected to the internet or not, it fails to pass the Progressive Web app audits that Lighthouse runs in Chrome Dev Tools, because a service work is not being registered. 

**Progressive Web App Dilemma**

I am trying to determine whether it would be possible to add a service worker that registers WITHOUT the need of having any additional file by bringing both the service worker related-javascript and json manifest code inline into the main .html file. Does anyone know if this would be possible? 

The reason is so that even when the page is saved offline one could install it locally and the browser would offer a user to save it as it would recognize it as a progress web app. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1392

Received on Tuesday, 26 February 2019 17:09:55 UTC