[whatwg] Apply script.defer to internal scripts
Anne van Kesteren
annevk at opera.com
Thu Mar 29 02:33:41 PDT 2007
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/>
More information about the whatwg
mailing list