Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 'the DOM load event' with 'the window load event' Issue #37047 #37073

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

SASHWAT12
Copy link
Contributor

@SASHWAT12 SASHWAT12 commented Dec 3, 2024

Description

Replaced 'the DOM load event' with 'the window load event' as it sounded similar to DOMContentLoaded event.

Motivation

This change will help new readers to have more clarity regarding onCompleted Navigation

Additional details

Chrome docs:
https://developer.chrome.com/docs/extensions/reference/api/webNavigation#event-onCompleted

Fired when a document, including the resources it refers to, is completely loaded and initialized.

Also this is super useful to know:

Event order
For a navigation that is successfully completed, events are fired in the following order:
onBeforeNavigate -> onCommitted -> [onDOMContentLoaded] -> onCompleted

Related issues and pull requests

Fixes #37047

@SASHWAT12 SASHWAT12 requested a review from a team as a code owner December 3, 2024 15:47
@SASHWAT12 SASHWAT12 requested review from rebloor and removed request for a team December 3, 2024 15:47
@github-actions github-actions bot added Content:WebExt WebExtensions docs size/xs [PR only] 0-5 LoC changed labels Dec 3, 2024
@SASHWAT12
Copy link
Contributor Author

@rebloor Could you please check and review.

Copy link
Contributor

github-actions bot commented Dec 8, 2024

Copy link
Contributor

@rebloor rebloor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SASHWAT12 Thanks for the suggestion

@rebloor rebloor merged commit 20af669 into mdn:main Dec 9, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebExt WebExtensions docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace "the DOM load event" with "the window load event"
2 participants