[whatwg] Apply script.defer to internal scripts

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