<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7792</bug_id>
          
          <creation_ts>2009-10-02 09:08:45 +0000</creation_ts>
          <short_desc>async on inline script is gratuitously backwards-incompatible, should be ignored</short_desc>
          <delta_ts>2010-10-04 13:58:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bkuhn</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28003</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-10-02 09:08:45 +0000</bug_when>
    <thetext>Since inline scripts are immediately available, it seems that the only effect the async attribute has on them is that document.write() blows away the document instead of writing to the stream.

While this would allow an optimization in speculative parsing, it seems dangerous to introduce a situation where people developing on an older browser could blow away the document without any other benefit than a timing optimization. Furthermore, if one wanted to deliberately promise not to use document.write() but one otherwise wanted the usual scripting semantics, it would be less confusing to have an attribute like &quot;nodocumentwrite&quot; which would make a parser with speculation capability not start a new speculation. (I&apos;m not actually suggesting such an attribute here, because I don&apos;t have data about the perf effect of the potential optimization.)

Thus, even if a minor opportunity for optimization is lost, it would seem prudent to ignore async on inline scripts like defer is ignored on inline scripts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28148</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2009-10-09 04:36:33 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r4098.
Check-in comment: Dramatically simplify &lt;script defer&gt; and &lt;script async&gt; handling.
http://html5.org/tools/web-apps-tracker?from=4097&amp;to=4098
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>