Re:JavaScript Modules
by streptomycin on Wednesday July 02, 2014 @12:13AM
(#7975150)
Won't people use a pre-processor for ES6 modules, like they do for CommonJS and AMD? Otherwise, it'd be a lot of HTTP requests. So you wouldn't have to wait for browser support to start using ES6 modules.
[ Parent
| on HN ]
Re:JavaScript Modules
by kybernetikos on Wednesday July 02, 2014 @03:36AM
(#7975691)
Probably. This is indeed how I see most es6 development going for a while, but many servers already support SPDY which allows the server to push things into the clients cache that it knows they will need. This basically removes the need for bundling, while keeping the advantages of separate files.
Re:JavaScript Modules
by BinaryIdiot on Wednesday July 02, 2014 @01:13PM
(#7978164)
This. I can't imagine, except maybe in a development mode, where I would want all of these different modules loading at different times especially if they're loading later rather than referencing the script in the HTML's HEAD.