Skip to content

Remove browser-specific claims about console.timeStamp() - #45615

Merged
wbamberg merged 3 commits into
mdn:mainfrom
Josh-Cena:console-timestamp
Sep 22, 2026
Merged

wbamberg merged 3 commits into
mdn:mainfrom
Josh-Cena:console-timestamp

Conversation

@Josh-Cena

Copy link
Copy Markdown
Member

Fix #22588.

According to BCD, FF 149+ supports console.timeStamp() to the profiler, so this content isn't "wrong" per se, but certainly not future-proof. Replaced with handwavy claims that it's implementation dependent, because there's BCD anyway.

@Josh-Cena
Josh-Cena requested a review from a team as a code owner September 10, 2026 23:09
@Josh-Cena
Josh-Cena requested review from wbamberg and removed request for a team September 10, 2026 23:09
@github-actions github-actions Bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Sep 10, 2026
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Preview URLs (5 pages)

External URLs (2)

URL: /en-US/docs/Web/API/console/timeStamp_static
Title: console: timeStamp() static method

(comment last updated: 2026-09-22 04:53:46)

@wbamberg wbamberg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like the direction of this but had a couple of additional suggestions.

Comment thread files/en-us/web/api/console/timestamp_static/index.md Outdated
Josh-Cena and others added 2 commits September 21, 2026 21:50
Co-authored-by: wbamberg <will@bootbonnet.ca>
@github-actions github-actions Bot added size/m [PR only] 51-500 LoC changed and removed size/s [PR only] 6-50 LoC changed labels Sep 22, 2026
@Josh-Cena
Josh-Cena requested a review from wbamberg September 22, 2026 04:52
- `end` {{Optional_Inline}} {{Experimental_Inline}}
- : A string referencing a previously defined `timeStamp` label or a timestamp ({{domxref("DOMHighResTimeStamp")}}) to be used as the end time.

- `label` {{Optional_Inline}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't know why we have un-alphabetised the parameters here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because these are positional arguments and their order matters, not an options object?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Oh fair enough! Sorry my brain stopped working.

@wbamberg wbamberg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 thank you!

@wbamberg
wbamberg merged commit e61741c into mdn:main Sep 22, 2026
9 checks passed
@Josh-Cena
Josh-Cena deleted the console-timestamp branch September 22, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Outdated information about what console.time*() functions add markers to performance profilers.

3 participants