On Thu, Mar 22, 2012 at 10:32 AM, Brendan Eich <[email protected]> wrote:
> John J Barton wrote:
>>
>> I guess you mean:  a special form evaluated before the outer function
>> runs? Surely this form is not off-line.
>
> No, before anything in the containing Program (up to the <script> container)
> runs. Modules are prefetched, not loaded by a nested event loop that
> violates run-to-completion (or unthinkable: starves the same-page-context UI
> to preserve r-t-c by queueing events).

I realize I mixed up two different things.

First developers need to understand the implications of
  import "foo1.js" as Foo;
You say they are not at all like
 var Foo = load('foo1.js");
and the syntax should differ. I sure agree with that.

Second, we need a solution for asynchronous loading with run-time
selection. We use it now and as we move to much better network layers
we will use it a lot more.

I don't really understand what you are saying above. Blocking the
initial page rendering is not on anyone list of needs.  On the other
hand blocking computation on network is not at all unthinkable, but
rather it is the standard practice. This should be a first class part
of the module solution.

jjb

>
> /be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to