Modules, Concatenation, and Better Solutions

Allen Wirfs-Brock allen at wirfs-brock.com
Mon Oct 15 11:58:42 PDT 2012


On Oct 15, 2012, at 6:38 AM, Sam Tobin-Hochstadt wrote:

> On Mon, Oct 15, 2012 at 9:31 AM, Kevin Smith <khs4473 at gmail.com> wrote:
>> 
>> With modules, we're going to see code broken up into more and smaller files,
>> which directly opposes the desire to minimize the number of HTTP
>> round-trips.  On solution is concatenation, but if I'm not mistaken there
>> are potential order-of-execution issues with that approach.
> 
> I believe that concatenation of modules ought to work fine as an
> approach for minimization of requests, because modules are executed
> when imported.

should that be "when first imported".  Presumably a module is executed only once per Realm

Allen





More information about the es-discuss mailing list