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

Document PerformanceMark constructor #21821

Merged
merged 2 commits into from
Oct 26, 2022
Merged

Document PerformanceMark constructor #21821

merged 2 commits into from
Oct 26, 2022

Conversation

Elchi3
Copy link
Member

@Elchi3 Elchi3 commented Oct 25, 2022

Description

This PR adds docs for the constructor of https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark.

Motivation

I'm working on openwebdocs/project#62.

Additional details

Wait, why does it have a constructor when there is performance.mark()? 😱
When using the constructor, the mark isn't added to the browser's performance timeline!

Related issues and pull requests

No BCD PR for the mdn_url yet. Will file one soon. Promised.

@Elchi3 Elchi3 requested a review from a team as a code owner October 25, 2022 14:06
@Elchi3 Elchi3 requested review from wbamberg and removed request for a team October 25, 2022 14:06
@github-actions github-actions bot added the Content:WebAPI Web API docs label Oct 25, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2022

Preview URLs

(this comment was updated 2022-10-26 11:58:36.072095)

@Elchi3
Copy link
Member Author

Elchi3 commented Oct 26, 2022

Thanks for the review, Will! I mostly copied the new contstructor page from https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark. So, I applied your feedback to both, the new constructor page and performance.mark().

Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

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

👍 thank you Florian!

@wbamberg wbamberg merged commit e8e6edd into mdn:main Oct 26, 2022
@Elchi3 Elchi3 deleted the perfmark-ctor branch October 26, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants