[whatwg] [The Module Tag

Ian Hickson ian at hixie.ch
Tue Oct 31 15:54:48 PST 2006


On Tue, 31 Oct 2006, Douglas Crockford wrote:
> > > >
> > > > The sender is suspended until the receiver returns.
> >
> > As a quick note, in general we're trying to get away from synchronous 
> > scripting. It causes too many problems, especially in browsers written 
> > around a single UI thread on which JS runs. Several APIs are having to 
> > be grandfathered in -- window.alert(), for instance -- but as a rule 
> > none of the new APIs should be synchronous.
> 
> This is a function invocation. The new APIs should allow function 
> invocations to remain synchronous. The thing to avoid is blockage. 
> alert() is evil. send() is not.

It's the same thing. Another example is XMLHttpRequest's send() method 
with synchronous calls selected. The Web expects scripts in JavaScript to 
not be re-entrant, so any synchronous call effectively blocks.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list