<?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>26350</bug_id>
          
          <creation_ts>2014-07-16 05:35:10 +0000</creation_ts>
          <short_desc>If the list of available images is being used to de-dup requests from the same page, shouldn&apos;t this (step 2) happen before the fetch is complete? Or do I misunderstand its purpose?</short_desc>
          <delta_ts>2015-09-16 12:44:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#img-load</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mnot</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108981</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-07-16 05:35:10 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/edits.html
Multipage: http://www.whatwg.org/C#img-load
Complete: http://www.whatwg.org/c#img-load
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
If the list of available images is being used to de-dup requests from the same
page, shouldn&apos;t this (step 2) happen before the fetch is complete? Or do I
misunderstand its purpose?

Posted from: 2001:44b8:418e:2700:b8f9:3dc4:ab0c:9512
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109332</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Nottingham">mnot</who>
    <bug_when>2014-07-28 04:21:53 +0000</bug_when>
    <thetext>This is regarding the &quot;list of available images&quot; BTW; it seems to operate as a cache of sorts (or at least a set function to avoid duplication), but I&apos;m not completely sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109829</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-04 13:49:00 +0000</bug_when>
    <thetext>If the page requests a new &lt;img src&gt; while a previous &lt;img src&gt; is still fetching the same URL, the spec invokes &quot;fetch&quot; again, but that is allowed to reuse the same fetch. So the list of available images is not used in that case.

The list of available images is used when the image is completely available, to enable sync switching of images and to avoid re-downloading images in the same document that don&apos;t allow caching per HTTP.

I could clarify this in a note if that would help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109904</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Nottingham">mnot</who>
    <bug_when>2014-08-04 23:45:59 +0000</bug_when>
    <thetext>Hi Simon,

That would be helpful. Where is the text allowing reuse of a fetch-in-progress? I couldn&apos;t find it.

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109936</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-05 14:15:01 +0000</bug_when>
    <thetext>See http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#fetch step 11. I don&apos;t know where it is stated in the new Fetch spec though (HTML doesn&apos;t use the new Fetch yet).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109937</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-08-05 14:29:11 +0000</bug_when>
    <thetext>https://github.com/ResponsiveImagesCG/picture-element/commit/f3f52af085dc8fed6b2bf2829db93c519769cb75</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109980</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Nottingham">mnot</who>
    <bug_when>2014-08-06 01:48:22 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>