Are ES6 modules in browsers going to get loaded level-by-level?

joe joeedh at gmail.com
Sat Apr 25 17:46:22 UTC 2015


What I do is send the files over in as TAR archives, with mod_deflate
turned on (they basically turn into .tar.gz files at that point).  It's
reasonably fast, even though I'm processing thirty megabytes of data this
way (yay for typed arrays).  I highly recommend it.


On Thu, Apr 23, 2015 at 7:57 AM, Erik Arvidsson <erik.arvidsson at gmail.com>
wrote:

> To add one more option. You can create a service worker that loads a
> single zip file from the server and then splits it up for the client.
>
> On Thu, Apr 23, 2015, 10:48 Domenic Denicola <d at domenic.me> wrote:
>
>>  Indeed, there is no built-in facility for bundling since as explained
>> in this thread that will actually slow down your performance, and there’s
>> no desire to include an antipattern in the language.
>>
>>
>>
>> *From:* es-discuss [mailto:es-discuss-bounces at mozilla.org] *On Behalf Of
>> *Eric B
>> *Sent:* Thursday, April 23, 2015 10:25
>> *To:* Frankie Bagnardi; Matthew Phillips
>> *Cc:* es-discuss
>> *Subject:* Re: Re: Are ES6 modules in browsers going to get loaded
>> level-by-level?
>>
>>
>>
>> So just to clarify, when browsers support es6 modules we will still need
>> some extra library to bundle the modules?  This would mean es6 modules are
>> only a syntactical addition and not something functional?
>>
>>
>>
>> On Thu, Apr 23, 2015 at 10:18 AM Frankie Bagnardi <f.bagnardi at gmail.com>
>> wrote:
>>
>>  Matthew, there are already tools for es6 modules + bundling (e.g. babel
>> + webpack), or converting es6 modules to AMD (e.g. babel
>> <https://babeljs.io/docs/usage/modules/>).
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Apr 22, 2015 at 7:10 PM, Matthew Phillips <matthew at bitovi.com>
>> wrote:
>>
>>
>>  Can you clarify what you mean about bundling? Unless I've missed
>> something, the ES6 module system does not have a story for bundling at all.
>> Of course formats can be invented in userland but I'm not sure that they
>> are any easier to implement than say AMD's.  I might have missed something
>> though, looking forward to your reply.
>>
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>  _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150425/a3d5747e/attachment.html>


More information about the es-discuss mailing list