<?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>24371</bug_id>
          
          <creation_ts>2014-01-23 04:01:09 +0000</creation_ts>
          <short_desc>Instead of having ping attribute, it would be more beneficiall if there was a JavaSctipt API that coould do ping more reliably. Today most browsers will discard pending AJAX calls and navigate to the  [...]</short_desc>
          <delta_ts>2014-01-24 23:24:13 +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>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#ping</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="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>liborvalenta</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98931</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-01-23 04:01:09 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html
Multipage: http://www.whatwg.org/C#ping
Complete: http://www.whatwg.org/c#ping
Referrer: 

Comment:
Instead of having ping attribute, it would be more beneficiall if there was a
JavaSctipt API that coould do ping more reliably. Today most browsers will
discard pending AJAX calls and navigate to the new documment immediatelly. It
would be nice if we can tell browser to make sure specific request is sent, we
don&apos;t need to supply call back for such request and thus page can be safely
discarded. The only thing left in memory would be pending ping requests - the
same thing as would be for requests made from the ping attribute.

Posted from: 2001:470:85cd:0:862b:2bff:feaa:4e86
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98932</commentid>
    <comment_count>1</comment_count>
    <who name="Libor Valenta">liborvalenta</who>
    <bug_when>2014-01-23 04:19:49 +0000</bug_when>
    <thetext>Most of the tracking and logging on the web do not require response, letting browser know that you don&apos;t expect anything back can be very helpful to make it work efficiently and reliably.

If ping attribute is implemented, I guess the Script can just modify the link attribute and let browser do the default action. Will that be enough though? Will for example form have ping attribute as well? How about script changing window.location? Will there be any mechanism to fire the ping request(s) from onbeforeunload?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98935</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-01-23 06:20:01 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99016</commentid>
    <comment_count>3</comment_count>
    <who name="Libor Valenta">liborvalenta</who>
    <bug_when>2014-01-24 17:53:09 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #2)
&gt; https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html
Thank you Simon for the link. That&apos;s the API i was hoping to see. The @ping and sendBeacon are complementary and I hope they will be developed in harmony.

Is there reason why ping is not proposed to be available on the form element?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99039</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-24 23:24:13 +0000</bug_when>
    <thetext>ping=&quot;&quot; isn&apos;t on &lt;form&gt; because the main use cases were for straight links (e.g. ads), and we didn&apos;t want to add lesser used features until the first one was implemented. So we started with &lt;a ping&gt; and waited. Since it hasn&apos;t been widely implemented yet, we haven&apos;t added anything yet.

The Beacon API may make this moot.

I&apos;m marking this WONTFIX for now, given the above.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>