W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

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

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Tue, 01 Aug 2006 16:31:13 +0700
Message-ID: <op.tdll2bls1h6og4@feldgendler.plesk.ru>
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
Received on Tuesday, 1 August 2006 02:31:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:48 UTC