Re: [w3c/ServiceWorker] Clarify dynamic-imported scripts are never installed (#1356)

> Yes, I think import() should be treated symmetrically to fetch()

I'm confused what this means here.  fetch() in a SW bypasses the SW and has no awareness of the `script resource map`.  import() explicitly takes a string [right now per the spec](https://tc39.github.io/proposal-dynamic-import/#sec-import-call-runtime-semantics-evaluation), and we disabled URL.createObjectURL() in workers.  If the user is offline, it seems like there's no way for a dynamic import to succeed.  This seems like a footgun by definition.

-- 
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/1356#issuecomment-425490358

Received on Friday, 28 September 2018 16:24:57 UTC