W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

[whatwg] Removal of blocking script

From: Juriy Zaytsev <kangax.dev@gmail.com>
Date: Mon, 15 Nov 2010 18:40:06 -0500
Message-ID: <AANLkTik-0HXkpwYiinZZz78KD0F-Q87yS=dt=gP0+35Q@mail.gmail.com>
When removing [1] a long-loading script element from a document, browsers
seem to disagree on whether such removal should affect page rendering. A
simple test ? http://kangax.github.com/jstests/blocking_script_removal_test/?
shows that Opera (9.x - 11) and IE (5.5 - 9) immediately continue
the document upon element removal. However, in Firefox (3-4) and Chrome (9)
the document parsing is blocked until script is loaded or times out (even
when the actual element no longer exists in the document, has its "src"
reference an empty string, and there exist no references to it).

Does current draft explain what should happen in such case, and if it does ?
what is it (I can't seem to find it)? The existing discrepancy suggests that
it's something worth codifying.

[1] Where "removing" is done through scripting (say, via Node's
`removeChild` or analogous method).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101115/eed9aac1/attachment.htm>
Received on Monday, 15 November 2010 15:40:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC