Re: [w3c/ServiceWorker] When should "imported scripts updated flag" be unset? (#1021)

> I don't think that would work if import() is called before the install event.

Yeah, we'd have to come up with some rule there, like it goes to the network before activate.

> A general problem will be how to handle the race between import() async modules loading and life cycle events. I guess the most straightforward way to handle that would be for script to use import() in an install event so it can use waitUntil() to guarantee the load completes.

Basically what the spec says for `importScripts` now?

-- 
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/1021#issuecomment-266496870

Received on Monday, 12 December 2016 17:37:03 UTC