[whatwg] scripts, defer, document.write and DOMContentLoaded

Boris Zbarsky bzbarsky at MIT.EDU
Fri Jul 31 22:56:20 PDT 2009

Ian Hickson wrote:
> I've changed the spec to do external deferred src=""ed scripts at the end 
> of document load (blowing away the document as before), and inline 
> deferred scripts as soon as innerHTML is set, if it is set, or else along 
> with other deferred scripts at the end of document load.

Another possible, less magic, option here is to simply not support defer 
on inline scripts.  Are there significant use cases for it?


More information about the whatwg mailing list