W3C home > Mailing lists > Public > public-web-perf@w3.org > November 2013

Re: [Beacon] Review of current spec

From: Ilya Grigorik <igrigorik@google.com>
Date: Thu, 14 Nov 2013 22:10:43 +0000
Message-ID: <CADXXVKru7XFQ_3m+0+BVdq=HaLouBP1uykQx9d-9qSOBo0aVOA@mail.gmail.com>
To: Arvind Jain <arvind@google.com>
Cc: Chase Douglas <chase@newrelic.com>, "Reitbauer, Alois" <Alois.Reitbauer@compuware.com>, "public-web-perf@w3.org" <public-web-perf@w3.org>
On Thu, Nov 14, 2013 at 9:57 PM, Arvind Jain <arvind@google.com> wrote:

> OK. Dumb question: how do we compress the payload in sendBeacon()
> (assuming we know the server can handle it)?
>

Therein lies the problem - you can't, at least not via any standard API.
There are pure JS implementations out there, but that's suboptimal... While
we're on the subject, having such an API would be very beneficial for XHR,
WebSockets, and this case as well.

I don't think this is something we need to tackle as part of Beacon API.
Instead, we should solve it at a higher layer... since we already accept
Blob, it would work without any modifications once such an API is available.
Received on Thursday, 14 November 2013 22:11:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:37 UTC