docs: add payload size limit note to navigator.sendBeacon()#43471
Merged
docs: add payload size limit note to navigator.sendBeacon()#43471
Conversation
Contributor
Author
|
Hi, I’ve added a note about the payload size limit for navigator.sendBeacon(). Please let me know if any changes are needed. Thanks! |
Contributor
Author
|
Hi! This is my first contribution to MDN 😊 I’ve followed the contribution guidelines and ensured lint/tests pass. Please let me know if any changes or improvements are needed — happy to update! Thanks for your time 🙌 |
Contributor
|
Preview URLs (1 page) External URLs (1)URL:
(comment last updated: 2026-03-19 17:54:17) |
pepelsbey
reviewed
Mar 19, 2026
Member
pepelsbey
left a comment
There was a problem hiding this comment.
Looks good overall, thank you! I'm only slightly concerned about the "typically", since it's a spec-defined limit that browsers seem to follow.
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
Thanks for the feedback! I've removed any ambiguity and clarified that the limit is spec-defined, updated the unit to KiB, and noted that the request fails if exceeded. Please let me know if this looks good now 🙂
Collaborator
|
LGTM if it looks good to Vadim. |
Thanks for the review! I've updated the wording to reflect the spec-defined behavior more accurately and removed ambiguity. Please let me know if this looks good now.
dsk-dev-ai
commented
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #42932
This PR adds a note about the payload size limit of navigator.sendBeacon(), clarifying that it is typically limited (~64 KB depending on the browser).
It also suggests using fetch() for larger data transfers.