Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Look into using navigator.sendBeacon #19

Open
garrypolley opened this issue Oct 8, 2015 · 1 comment
Open

Look into using navigator.sendBeacon #19

garrypolley opened this issue Oct 8, 2015 · 1 comment

Comments

@garrypolley
Copy link
Contributor

Right now we have a "beaconHandler" that is really a hack around using the Image.src.

It should get support in IE Edge in the future.

For now I think feature detection that uses navigator.sendBeacon may be the way to go. Then for browser that do not support it fall back to the hacky Image.src method.

Here is the specification for the feature: http://www.w3.org/TR/beacon/
More "user friendly" detail here: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon

@mhemesath brought this up awhile ago. I saw it again while browsing http://caniuse.com/#search=sent

@garrypolley
Copy link
Contributor Author

It's looking like the sendBeacon is not getting much traction from IE or Safari.

The repo for its documentation can be found here: https://github.com/w3c/beacon/commits/gh-pages

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant