Re: [w3c/ServiceWorker] How should import() work in service workers? (#1585)

> Note, I'd prefer not to hang this method off of `caches` if its not using the cache API normally. The install event seems a reasonable place?

This is why I went with `modulePreload` rather than `cacheModule`.

Putting this on the install event is obviously a better place for this! `installModule`? Worklets use `addModule`, but that includes immediate execution. Anyway, there's more behaviour stuff to figure out before we need to settle on names (like the stuff @jeffposnick mentions).

-- 
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/1585#issuecomment-826269338

Received on Sunday, 25 April 2021 06:52:29 UTC