W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] Apply script.defer to internal scripts

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 29 Mar 2007 11:33:41 +0200
Message-ID: <op.tpx16fw864w2qv@id-c0020>
On Thu, 29 Mar 2007 11:30:36 +0200, Gareth Hay <gazhay at gmail.com> wrote:
> Does it not follow that to be "more consistent, logical, better style,  
> whatever." you should wrap your code in a function that is called onload?
>
> Isn't that what onload is for? being triggered after the page has loaded?

That load event dispatched on the <body> element also waits for all  
external scripts and images to be loaded. This is not always desirable.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 29 March 2007 02:33:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC