Re: ISSUE-36: DOMContentLoaded?

Jim Ley wrote:
> 
> "Jonas Sicking" <jonas@sicking.cc>
>> If we do want scripts to be loaded I think we need to specify it here, 
>> otherwise it's not going to get specified anywhere. And saying that 
>> scripts should be loaded isn't really HTML specific since scripts 
>> appear in many languages.
> 
> If we require scripts to be loaded, then I want an event before scripts 
> are loaded please, the use cases on DOMContentLoaded all revolve around 
> the fact the content is rendered to the user and the behaviours are not 
> yet hooked up, not solving this problem with DOMContentLoaded means it 
> fails to meet its use case.

I'm not sure I agree with "the behaviours are not yet hooked up".

There is always going to be a risk that resources, including scripts and 
images, are loaded when DOMContentLoaded fires. If the UA a script in 
cache it might execute the script right away even if it has the defer 
attribute. And if an image lives in cache it could be inserted in the 
page layout right away.

Is that a problem?

/ Jonas

Received on Friday, 10 March 2006 21:25:03 UTC