W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] should async scripts block the document's load event?

From: Brian Kuhn <bnkuhn@gmail.com>
Date: Tue, 3 Nov 2009 12:55:46 -0800
Message-ID: <335a812d0911031255l696cddd6nb04f66420fedbdb4@mail.gmail.com>
In section 4.3.1<http://www.whatwg.org/specs/web-apps/current-work/#attr-script-async>,
it says:

*Fetching an external script must delay the load event of the element's
document until the task that is queued by the networking task source once
the resource has been fetched (defined above) has been run.*

Has any thought been put into changing this for async scripts?  It seems
like it might be worthwhile to allow window.onload to fire while an async
script is still downloading if everything else is done.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091103/d8eb035d/attachment.htm>
Received on Tuesday, 3 November 2009 12:55:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC