W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2011

[whatwg] Proposal for separating script downloads and execution

From: Glenn Maynard <glenn@zewt.org>
Date: Wed, 9 Feb 2011 07:07:59 -0500
Message-ID: <AANLkTimbHfRzyHvfNwkFomYbiYmnS1eLg3eT0D415P84@mail.gmail.com>
On Wed, Feb 9, 2011 at 2:46 AM, Glenn Maynard <glenn at zewt.org> wrote:

> - Just for comparison: <script src="path.js" noexecute
> onload="this.execute()"> seems roughly equivalent to <script async>, and
> like async, falls back on immediate loading if noexecute isn't supported.
> <script defer> could be implemented in terms of this as well.

Put more generally, noexecute is a straightforward generalization of the
script deferral established by <script defer>.  Defer delays execution until
the document is parsed, and noexecute delays execution until instructed.
These fit together in an obvious, consistent way.

Glenn Maynard
Received on Wednesday, 9 February 2011 04:07:59 UTC

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