Conflating a unit of code organization (ES6 module) with a unit of code delivery (HTML import) is a mistake.https://twitter.com/slightlylate/status/792014657506516992 …
-
-
Replying to @cramforce
I don’t have particular opinions about HTML imports, but giving Es6 modules a role in code delivery is dangerous.
3 replies 0 retweets 1 like -
Replying to @cramforce
: I'm not sure that's true. <script type="module"> is good stuff. But it's not enough.
1 reply 0 retweets 0 likes -
Replying to @slightlylate
I don’t see a path to HTTP-request-per-module being efficient any time soon.
2 replies 0 retweets 1 like -
Replying to @cramforce @slightlylate
even if there was HTTP layer bundling. If JS engine has to context switch to network thread per module, things fall down.
1 reply 0 retweets 0 likes -
Replying to @cramforce @slightlylate
a typical site has 10-100 “units of code delivery”, but 1000 to 100000 ES6 modules.
1 reply 2 retweets 5 likes
: yep. Again, a strong reason to have anonymous modules...but I digress. TC39 won't save us (any time soon enough to matter).
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.