Beacon API just landed in Chrome Canary! Head to chrome://flags/#enable-experimental-web-platform-features, enable the flag, and give it a try!

What's Beacon API? It's a new mechanism to report analytics and similar data without blocking the browser: the payload is delivered in the background by the browser and does not block the page.. even across navigations. In other words, no need for sync-XHRs and other similar hacks to capture page navigation events, form submissions, etc. Think of it as <a ping> but more flexible and more powerful.

Spec: https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/Beacon/Overview.html

P.S. Firefox Nightly also has an implementation of Beacon: https://bugzilla.mozilla.org/show_bug.cgi?id=936340
Photo
Shared publiclyView activity