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

> familiar, natural syntax, ease of polyfilling (?) and the ability, I presume, for parsers to optimize, and tools to colorize / autocomplete, etc, in a standardized, non proprietary way

I don't think it's any of those things 😈 and it certainly feels a lot less natural than

```javascript
const template1 = new HTMLTemplateElement();
template1.innerHTML = ` ... `;

// Hypothetical
const styleSheet = new CSSStyleSheet(` ... `);
```

Both are familiar, one is possible now, the latter is easy to polyfill.

> Would this be done synchronously? Would you need to use the dynamic import() to do it asynchronously?

Both are asynchronous but static imports are done before the rest of the code is executed.

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

Received on Monday, 7 August 2017 08:56:29 UTC