- From: Ashley (Scirra) <notifications@github.com>
- Date: Wed, 23 May 2018 08:23:55 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 May 2018 15:24:17 UTC
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