The navigator.sendBeacon()
method asynchronously sends a small
amount of data over HTTP to a web server. It is intended to be
used for sending analytics data to a web server. For more details
see the MDN docs on the Beacon API and
sendBeacon.
navigator.sendBeacon
is the only method currently defined for the
Beacon API.