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

@rniwa thanks for the detailed explanation and examples!

The original one:
```js
import X from module { export const X = 1; }
import Y from module { export function add(x, y) { return x + y }; }
```
looks like **anonymous inline ES6 modules** to me - so for performance, you can save two resource loads and their related overheads, right?
The original ES6 module syntax requires that all import statement should be statically parsable without evaluation - I'm not an expert of language scanner/parser, can the proposed syntax fulfill the requirement?

Also, as ES6 modules system starts running scripts when all imported resources are ready - which is different from HTML Imports which transitively parse and execute scripts. So for big chunk of data that is not needed at startup, maybe same mechanism is also needed to dynamic imports - though in that case `fetch` would work as well.

-- 
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-311122827

Received on Monday, 26 June 2017 17:13:29 UTC