AngleSharp / AngleSharp/AngleSharp.Io

Add Beacon API via navigator.sendBeacon

Open
#43 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api enhancement up-for-grabs
Dominant language
C#
Stars
37
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the navigator API surface and the requesters/loader path mentioned in the issue. Trace how URL and body inputs are serialized and how non-blocking requests are accepted or rejected. Done means sendBeacon supports the listed body forms, deterministic boolean results, content-type and serialization tests, and no unhandled exceptions for unsupported payloads.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.