W3C home > Mailing lists > Public > public-html-diffs@w3.org > February 2010

hixie: 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? (whatwg r4741)

From: poot <cvsmail@w3.org>
Date: Mon, 15 Feb 2010 09:32:28 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100215003228.6F7FD2BC14@toro.w3.mag.keio.ac.jp>
hixie: 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?
(whatwg r4741)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3787&r2=1.3788&f=h
http://html5.org/tools/web-apps-tracker?from=4740&to=4741

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3787
retrieving revision 1.3788
diff -u -d -r1.3787 -r1.3788
--- Overview.html	14 Feb 2010 13:46:58 -0000	1.3787
+++ Overview.html	15 Feb 2010 00:32:04 -0000	1.3788
@@ -281,7 +281,7 @@
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
 
-   <h2 class="no-num no-toc" id="editor-s-draft-14-february-2010">Editor's Draft 14 February 2010</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-15-february-2010">Editor's Draft 15 February 2010</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -389,7 +389,7 @@
   specification's progress along the W3C Recommendation
   track.
 
-  This specification is the 14 February 2010 Editor's Draft.
+  This specification is the 15 February 2010 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is part of <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/">a
   larger specification</a> being produced by the <a href="http://www.whatwg.org/">WHATWG</a>, which is available under a
   license that permits reuse of the specification text.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><!-- (this text is from the RDFa+HTML spec --><p>This specification is an extension to the HTML5 language. All
@@ -10679,8 +10679,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><h3 id="scripting-1"><span class="secno">4.3 </span>Scripting</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>Scripts allow authors to add interactivity to their documents.<p>Authors are encouraged to use declarative alternatives to
   scripting where possible, as declarative mechanisms are often more
@@ -11140,16 +11141,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
@@ -45400,7 +45391,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>
Received on Monday, 15 February 2010 00:33:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:17 GMT