- From: Jake Archibald <notifications@github.com>
- Date: Tue, 11 Jun 2019 05:07:34 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 11 June 2019 12:08:01 UTC
```js
// 1
import './this-has-top-level-await';
// 2
const modulePromise = import('./this-has-top-level-await');
// 3
await modulePromise;
```
In a service worker, 1 and 3 are 'bad' because they delay important events. However, 2 is fine.
If we choose to disallow 1 & 3, can we still allow 2? It provides a path to including third party libraries that use top-level-await.
--
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-500812273
Received on Tuesday, 11 June 2019 12:08:01 UTC