W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ISSUE-36: DOMContentLoaded?

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 06 Mar 2006 01:38:52 -0800
Message-ID: <440C032C.3050100@sicking.cc>
To: Web APIs WG <public-webapi@w3.org>

>>   Specifically, this event can be dispatched
>>   before all external resources are loaded and
>>   applied and MUST be dispatched before the
>>   load event. Language specific requirements
>>   can make the UA to load certain dependencies
>>   first. In HTML all scripts have to be loaded
>>   for example.
> 
> I don't think we should say that all scropts have to be loaded since a 
> proper implementation of the defer attribute could build the DOM before 
> loading all scripts.

The more I think about it the more I think it might be a good idea to 
require all scripts to be loaded. Without that we might be severly 
reducing the usefulness of the event by forcing too many users to wait 
for "load" to fire in order to reliably use functions and global 
variables provided in scripts.

There might also be issues with current implementations would load all 
scripts before firing the event, so users might become dependent on it 
anyway.

/ Jonas
Received on Monday, 6 March 2006 09:38:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT