Re: [w3c/webcomponents] HTML, CSS, and JSON modules shouldn't solely rely on MIME type to change parsing behavior (#839)

@mkay581 importing CSS is extremely common in tooling-based solutions. The DX is an obvious win, and the loading perf win is worth it too.

We can't quite do the same with fetch() and top-level-await either because we'd need to fetch as a string, then parse async, and await on both steps, which is going to block dependent modules from even starting their fetch. There will be a waterfall of work up the tree that won't exist with native CSS modules.

-- 
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/839#issuecomment-540172118

Received on Wednesday, 9 October 2019 20:14:48 UTC