[html5] r4741 - [giow] (2) Make it so that non-parser-blocking scripts don't get blocked on styl [...]

whatwg at whatwg.org whatwg at whatwg.org
Sun Feb 14 16:32:00 PST 2010


Author: ianh
Date: 2010-02-14 16:31:58 -0800 (Sun, 14 Feb 2010)
New Revision: 4741

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make it so that non-parser-blocking scripts don't get blocked 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?

Modified: complete.html
===================================================================
--- complete.html	2010-02-14 13:46:52 UTC (rev 4740)
+++ complete.html	2010-02-15 00:31:58 UTC (rev 4741)
@@ -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 — 14 February 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 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 @@
   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 @@
 
      <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 @@
 
    <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>

Modified: index
===================================================================
--- index	2010-02-14 13:46:52 UTC (rev 4740)
+++ index	2010-02-15 00:31:58 UTC (rev 4741)
@@ -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 — 14 February 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 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 @@
   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 @@
 
      <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 @@
 
    <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>

Modified: source
===================================================================
--- source	2010-02-14 13:46:52 UTC (rev 4740)
+++ source	2010-02-15 00:31:58 UTC (rev 4741)
@@ -13001,8 +13001,9 @@
   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 @@
 
      <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 @@
 
    <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>




More information about the Commit-Watchers mailing list