[whatwg] What should document.write() do when called from setTimeout or event handlers?

Alexey Feldgendler alexey at feldgendler.ru
Tue Aug 1 02:31:13 PDT 2006

On Tue, 01 Aug 2006 09:32:31 +0700, Andrew Fedoniouk <news at terrainformatica.com> wrote:

> (That is what I never understand : why script is allowed to do anything
> during load time. Script should start executing when DOM is complete,
> when, e.g. getElementById makes real sense.)

Document loading can take a lot of time, especially when external images and objects are used on the page. The user can start interacting with the partially rendered page before it has completely loaded.

Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com

More information about the whatwg mailing list