Re: [w3c/ServiceWorker] Top-level await integration for ServiceWorkers running modules (#1407)

> where subresources like dynamically determined JavaScript modules may be important for the code to run

This sort of thing can be a bit of a footgun in service workers, unfortunately.  It may work the majority of the time, but it increases the chance they will try to dynamically load a resource that is not offlined when the device does not have network.  This is why importScripts() that hit network are only permitted during the install phase and otherwise throw immediately in service workers.

-- 
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/1407#issuecomment-493983196

Received on Monday, 20 May 2019 13:18:06 UTC