[Webkit-unassigned] [Bug 147885] New: Implement new "Beacon" W3C spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 11 11:07:58 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147885

            Bug ID: 147885
           Summary: Implement new "Beacon" W3C spec
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: irae at irae.pro.br

User metrics is a very common way of measuring a product success, be it a small startup or products like Yahoo Search, which I currently work on.
Most of the motivation for this new spec is expressed in the spec itself and other browser vendors are already onboard and have this Last Call Editor's draft spec on their stable version of the browser.

http://www.w3.org/TR/beacon/

I would like to illustrate our particular use case in order to help WebKit prioritize this request. In legacy Yahoo Search we track most of the events server-side, even before HTML is sent to the client. This is fine for the "legacy" web, almost without Javascript. The current iteration of Yahoo Search is a so called "Single Page App", and all the runtime and even navigation is handled by Javascript and updates to the page are using XHR to fetch data. Moving user metrics aggregation to the client has been a challenge and we do variations on the techniques described in the aforementioned spec.

In our particular case, we would appreciate the `navigator.sendBeacon` API not only for the reasons stated there, but also we are very found of the following paragraph:

> "The User Agent SHOULD transmit data at the earliest available opportunity, but
> MAY prioritize the transmission of data lower compared to other network
> traffic. The User Agent SHOULD make a best effort attempt to eventually transmit
> the data."

Specially in areas with low coverage of cellular data access, this would mean a lot perceived performance improvements for the end-user, as we could use the new API to send all user metrics data, not only the clicks that happened before unloading the document, and Safari could potentially hold this requests until user has higher bandwidth available. Our search results would potentially load faster, the website the user is navigating to would load faster.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150811/5de05f1a/attachment-0001.html>


More information about the webkit-unassigned mailing list