W3C home > Mailing lists > Public > public-html@w3.org > October 2010

Re: Executing script-inserted external scripts in insertion order

From: Kornel Lesiński <kornel@geekhood.net>
Date: Mon, 18 Oct 2010 10:01:27 +0100
Cc: public-html@w3.org
Message-Id: <C340A7FA-B851-425E-8885-08F4344B9C2D@geekhood.net>
To: Adam Barth <w3c@adambarth.com>
>> Regardless of whether the script is inserted by the parser or by another
>> script, if you want a set of scripts to behave "asynchronous" (that is,
>> execute each in the set "as soon as possible") then you set `async=true`. If
>> you want them to behave "non-asynchronous" (that is, execute each in
>> insertion order), you set `async=false`.
>> 
>> That seems quite logical and defendable to me, and is far more intuitive to
>> me than introducing other attributes. What's *not* logical to me is that
>> script-inserted scripts currently ASSUME `async=true` behavior (but yet do
>> NOT expose such a property), and moreover give no way to override that
>> behavior.
> 
> Legacy behavior is often illogical.
> 
> As well as being declarative, the waitFor proposal also supports more
> use cases than the other proposal because it doesn't force a linear
> dependency graph.

It seems like a lot of additional complexity, and it still doesn't fix unintuitive behavior of async that Kyle explained.

-- 
regards, Kornel
Received on Monday, 18 October 2010 09:02:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:20 UTC