Re: [w3c/webcomponents] HTML Modules (#645)

I assumed loading multiple modules would explicitly be loaded in parallel, e.g.:

```js
const [htmlModule1, htmlModule2, htmlModule3] = Promise.all([
    await importAs("module1.html", HTMLModule),
    await importAs("module2.html", HTMLModule),
    await importAs("module3.html", HTMLModule)
]);
```

That should perform well, no? Without top-level await you can't do that at all and have to resort to an IIAFE or something. The syntax is still a bit awkward though, which is why it would be nice to support this directly with the `import` syntax.

-- 
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/webcomponents/issues/645#issuecomment-391388616

Received on Wednesday, 23 May 2018 15:24:17 UTC