Hacker News new | ask | show | jobs
by radicality 1542 days ago
Is it always about analytics? Or is it ocassionaly also a useful API for other tasks?

I know little about front end JS dev, but the docs say it’s just a way to send an asynchronous request (no response) with a guarantee that the the request will be sent out, even if the page starts unloading. That’s apparently not a guarantee with the two other to send requests - XmlHttpRequest and fetch api.

1 comments

The beacon api was created specifically to be a lightweight method for telemetry/logging