Proposal
Implement navigator.sendBeacon for fire-and-forget telemetry and background-safe submissions.
Scope:
- Expose navigator.sendBeacon with URL and body inputs.
- Support string, blob, and byte-like body forms.
- Return boolean based on acceptance of enqueue/send.
Technical Notes:
- Route through requesters/loader with non-blocking semantics.
- Inject policy for size limits and batching if needed.
Acceptance Criteria:
- sendBeacon returns true for accepted payloads and false for rejected ones.
- Body serialization and content type handling are covered by tests.
- No unhandled exceptions on unsupported payloads.
Out of Scope:
- Browser-specific background delivery guarantees.
- Retry persistence across process restarts.
Description
Implement navigator.sendBeacon as a lightweight, non-blocking telemetry submission API with body type support and deterministic acceptance behavior.
Background
sendBeacon is widely used for analytics and end-of-session events where fire-and-forget semantics are preferred over fetch/XHR lifecycle coupling.
Specification
Proposal
Implement navigator.sendBeacon for fire-and-forget telemetry and background-safe submissions.
Scope:
Technical Notes:
Acceptance Criteria:
Out of Scope:
Description
Implement navigator.sendBeacon as a lightweight, non-blocking telemetry submission API with body type support and deterministic acceptance behavior.
Background
sendBeacon is widely used for analytics and end-of-session events where fire-and-forget semantics are preferred over fetch/XHR lifecycle coupling.
Specification