Permalink
Browse files

[giow] (2) Make it so that non-parser-blocking scripts don't get bloc…

…ked on style sheets. Making dynamically inserted scripts block stuff as well is _extremely_ hard to reason about: consider multiple iframes sharing the same event loop, for instance. Which tasks do you block? How do you keep things ordered? What about <link onload>s that insert script elements?

git-svn-id: http://svn.whatwg.org/webapps@4741 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 18039ce commit c26afe71a10ef70cac10c2df98105c8469372372 @Hixie Hixie committed Feb 15, 2010
Showing with 14 additions and 41 deletions.
  1. +5 −14 complete.html
  2. +5 −14 index
  3. +4 −13 source
View
@@ -157,7 +157,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Draft Standard &mdash; 14 February 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard &mdash; 15 February 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -12422,8 +12422,9 @@ <h4 id=styling><span class=secno>4.2.7 </span><dfn title="styling processing mod
when the element was created by the parser, and the element's
<a href=#style-sheet-ready>style sheet ready</a> flag is not yet set, and, the last
time the <a href=#event-loop>event loop</a> reached step 1, the element was
- <a href=#in-a-document title="in a document">in that
- <code>Document</code></a>.</p>
+ <a href=#in-a-document title="in a document">in that <code>Document</code></a>,
+ and the user agent hasn't given up on that particular style sheet
+ yet. A user agent may give up on a style sheet at any time.</p>
</div>
@@ -12924,16 +12925,6 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
<li>
- <p><a href=#pause>Pause</a> until either any applicable style sheets
- have been <a href=#fetch title=fetch>fetched</a> and applied, or the
- user agent has timed out and decided to not wait for those style
- sheets.</p>
- <!-- TESTS: http://www.hixie.ch/tests/adhoc/html/script/loading/ -->
-
- </li>
-
- <li>
-
<p><a href=#create-a-script-from-a-node title="create a script from a node">Create a
script</a> from the <code><a href=#script>script</a></code> element node, using
<var><a href="#the-script-block's-source">the script block's source</a></var> and <var><a href="#the-script-block's-type">the script
@@ -58457,7 +58448,7 @@ <h3 id=timers><span class=secno>7.2 </span>Timers</h3>
<li>
- <p><i>Wait</i>: If the <a href=#method-context>method context</a> is a
+ <p><i title="">Wait</i>: If the <a href=#method-context>method context</a> is a
<code><a href=#window>Window</a></code> object, wait until the <code>Document</code>
associated with the <a href=#method-context>method context</a> has been <a href=#fully-active>fully
active</a> for a further <var title="">interval</var>
View
@@ -159,7 +159,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
- <h2 class="no-num no-toc">Draft Standard &mdash; 14 February 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard &mdash; 15 February 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -12321,8 +12321,9 @@ c-end = "--&gt;"</pre>
when the element was created by the parser, and the element's
<a href=#style-sheet-ready>style sheet ready</a> flag is not yet set, and, the last
time the <a href=#event-loop>event loop</a> reached step 1, the element was
- <a href=#in-a-document title="in a document">in that
- <code>Document</code></a>.</p>
+ <a href=#in-a-document title="in a document">in that <code>Document</code></a>,
+ and the user agent hasn't given up on that particular style sheet
+ yet. A user agent may give up on a style sheet at any time.</p>
</div>
@@ -12823,16 +12824,6 @@ c-end = "--&gt;"</pre>
<li>
- <p><a href=#pause>Pause</a> until either any applicable style sheets
- have been <a href=#fetch title=fetch>fetched</a> and applied, or the
- user agent has timed out and decided to not wait for those style
- sheets.</p>
- <!-- TESTS: http://www.hixie.ch/tests/adhoc/html/script/loading/ -->
-
- </li>
-
- <li>
-
<p><a href=#create-a-script-from-a-node title="create a script from a node">Create a
script</a> from the <code><a href=#script>script</a></code> element node, using
<var><a href="#the-script-block's-source">the script block's source</a></var> and <var><a href="#the-script-block's-type">the script
@@ -58379,7 +58370,7 @@ interface <dfn id=windowtimers>WindowTimers</dfn> {
<li>
- <p><i>Wait</i>: If the <a href=#method-context>method context</a> is a
+ <p><i title="">Wait</i>: If the <a href=#method-context>method context</a> is a
<code><a href=#window>Window</a></code> object, wait until the <code>Document</code>
associated with the <a href=#method-context>method context</a> has been <a href=#fully-active>fully
active</a> for a further <var title="">interval</var>
View
@@ -13001,8 +13001,9 @@ c-end = "-->"</pre>
when the element was created by the parser, and the element's
<span>style sheet ready</span> flag is not yet set, and, the last
time the <span>event loop</span> reached step 1, the element was
- <span title="in a document">in that
- <code>Document</code></span>.</p>
+ <span title="in a document">in that <code>Document</code></span>,
+ and the user agent hasn't given up on that particular style sheet
+ yet. A user agent may give up on a style sheet at any time.</p>
</div>
@@ -13584,16 +13585,6 @@ c-end = "-->"</pre>
<li>
- <p><span>Pause</span> until either any applicable style sheets
- have been <span title="fetch">fetched</span> and applied, or the
- user agent has timed out and decided to not wait for those style
- sheets.</p>
- <!-- TESTS: http://www.hixie.ch/tests/adhoc/html/script/loading/ -->
-
- </li>
-
- <li>
-
<p><span title="create a script from a node">Create a
script</span> from the <code>script</code> element node, using
<var>the script block's source</var> and <var>the script
@@ -66077,7 +66068,7 @@ interface <dfn>WindowTimers</dfn> {
<li>
- <p><i>Wait</i>: If the <span>method context</span> is a
+ <p><i title="">Wait</i>: If the <span>method context</span> is a
<code>Window</code> object, wait until the <code>Document</code>
associated with the <span>method context</span> has been <span>fully
active</span> for a further <var title="">interval</var>

0 comments on commit c26afe7

Please sign in to comment.