[whatwg] script postonload
Steve Souders
whatwg at souders.org
Wed Feb 10 10:55:23 PST 2010
Being able to replicate the behavior in JavaScript is not a valid reason
to reject the proposal. For example, all the behavior of DEFER and ASYNC
can be replicated using JavaScript and yet those attributes are also
proposed. The point is to lower the bar to get wider adoption. Adding
"DEFER" is significantly simpler than adding a load handler that
dynamically appends a SCRIPT element to the DOM.
-Steve
On 2/9/2010 6:40 PM, Boris Zbarsky wrote:
> On 2/8/10 5:06 PM, Steve Souders wrote:
>> The behavior would be similar to DEFER, but instead of delaying
>> downloads until after parsing they would be delayed until after the
>> window's load event.
>
> Is this meant to be used for scripts one has no control over? If not,
> then just making all the interesting parts of the script happen "after
> the load event" (which would also need to be defined) seems pretty
> simple, right?
>
> -Boris
More information about the whatwg
mailing list