Re: [whatwg] script postonload

2010-02-10 Thread Anne van Kesteren
On Mon, 08 Feb 2010 23:06:07 +0100, Steve Souders st...@souders.org wrote: I'd like to propose the addition of a POSTONLOAD attribute to the SCRIPT tag. The behavior would be similar to DEFER, but instead of delaying downloads until after parsing they would be delayed until after the

Re: [whatwg] script postonload

2010-02-10 Thread Steve Souders
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

Re: [whatwg] script postonload

2010-02-10 Thread Boris Zbarsky
On 2/10/10 1:55 PM, Steve Souders wrote: Being able to replicate the behavior in JavaScript is not a valid reason to reject the proposal. No, but it _is_ a reason to carefully consider the complexity the proposal introduces against the possible benefits of the proposal and to perhaps examine

Re: [whatwg] script postonload

2010-02-10 Thread Jonas Sicking
On Wed, Feb 10, 2010 at 12:57 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 08 Feb 2010 23:06:07 +0100, Steve Souders st...@souders.org wrote: I'd like to propose the addition of a POSTONLOAD attribute to the SCRIPT tag. The behavior would be similar to DEFER, but instead of delaying

Re: [whatwg] script postonload

2010-02-10 Thread Jonas Sicking
On Wed, Feb 10, 2010 at 11:26 AM, Boris Zbarsky bzbar...@mit.edu wrote: For example, all the behavior of DEFER and ASYNC can be replicated using JavaScript That's not the case, actually.  The behavior of DEFER (eager load start, deferred script execution, not blocking the parser or other

Re: [whatwg] script postonload

2010-02-10 Thread Jonas Sicking
On Wed, Feb 10, 2010 at 11:40 AM, Jonas Sicking jo...@sicking.cc wrote: On Wed, Feb 10, 2010 at 12:57 AM, Anne van Kesteren ann...@opera.com wrote: On Mon, 08 Feb 2010 23:06:07 +0100, Steve Souders st...@souders.org wrote: I'd like to propose the addition of a POSTONLOAD attribute to the

Re: [whatwg] script postonload

2010-02-10 Thread Boris Zbarsky
On 2/10/10 2:44 PM, Jonas Sicking wrote: ASYNC can be implemented in most browsers actually. Yes, I was pretty careful with my use of in a cross-browser manner... ;) -Boris

Re: [whatwg] script postonload

2010-02-10 Thread Jonas Sicking
On Wed, Feb 10, 2010 at 12:14 PM, Boris Zbarsky bzbar...@mit.edu wrote: On 2/10/10 2:44 PM, Jonas Sicking wrote: ASYNC can be implemented in most browsers actually. Yes, I was pretty careful with my use of in a cross-browser manner... ;) However even if Firefox (and maybe Opera) had behaved

[whatwg] script postonload

2010-02-09 Thread Steve Souders
I'd like to propose the addition of a POSTONLOAD attribute to the SCRIPT tag. 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. Similar to DEFER, this new attribute would ensure scripts

Re: [whatwg] script postonload

2010-02-09 Thread Boris Zbarsky
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