Beacon API

E924907

The Beacon API is a web platform feature that enables asynchronous, non-blocking transmission of small amounts of data (such as analytics or diagnostics) from the browser to a server, even when a page is unloading.

All labels observed (2)

Label Occurrences
Beacon API canonical 1
Navigator.sendBeacon API 1

How this entity was disambiguated

Statements (53)

Predicate Object
instanceOf Web API ⓘ
browser feature ⓘ
web platform feature ⓘ
advantageOver Fetch API for non-blocking unload requests ⓘ
XMLHttpRequest for unload-time analytics ⓘ
alsoKnownAs Navigator.sendBeacon API ⓘ
linked to: Beacon API
canSend ArrayBufferView ⓘ
Blob ⓘ
FormData ⓘ
URLSearchParams ⓘ
USVString ⓘ
comparedWith Fetch API ⓘ
XMLHttpRequest ⓘ
definedIn W3C Beacon specification ⓘ
designedFor analytics beacons ⓘ
background data sending ⓘ
crash or error reporting ⓘ
performance monitoring ⓘ
reliable transmission during page unload ⓘ
sending data when a page is unloading ⓘ
doesNotBlock navigation ⓘ
page close ⓘ
page unload ⓘ
ensures data is queued for transfer before page unload completes ⓘ
exposedOn Navigator interface ⓘ
hasLimitation no progress events ⓘ
no response body is exposed to script ⓘ
no way to read HTTP status code in script ⓘ
only POST method is supported ⓘ
payload size is user-agent dependent and typically small ⓘ
introducedTo improve reliability of analytics pings ⓘ
partOf Web Platform ⓘ
linked to: Web platform
primaryMethod navigator.sendBeacon ⓘ
returns false if the data cannot be queued ⓘ
true if the user agent is able to successfully queue the data for transfer ⓘ
returnType boolean ⓘ
securityModel subject to CORS when sending cross-origin requests ⓘ
subject to same-origin policy for some use cases ⓘ
standardizedBy World Wide Web Consortium ⓘ
supportedBy Google Chrome ⓘ
Microsoft Edge ⓘ
Mozilla Firefox ⓘ
Safari ⓘ
supports POST requests ⓘ
analytics data transmission ⓘ
asynchronous data transmission ⓘ
diagnostic data transmission ⓘ
fire-and-forget HTTP requests ⓘ
non-blocking data transmission ⓘ
sending small amounts of data ⓘ
telemetry data transmission ⓘ
uses Content-Type header inferred from body type ⓘ
HTTP POST method ⓘ

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

Beacon API → alsoKnownAs → Navigator.sendBeacon API ⓘ
linked to: Beacon API