[whatwg] Proposal for separating script downloads and execution
glenn at zewt.org
Wed Feb 9 04:07:59 PST 2011
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.
More information about the whatwg