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

What are the ramifications of performance.now() bugs? #33760

Open
DanKaplanSES opened this issue May 26, 2024 · 0 comments
Open

What are the ramifications of performance.now() bugs? #33760

DanKaplanSES opened this issue May 26, 2024 · 0 comments
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@DanKaplanSES
Copy link
Contributor

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Performance/now

What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Web/API/Performance/now#ticking_during_sleep

What information was incorrect, unhelpful, or incomplete?

Here is the complete section:

Ticking during sleep

The specification (Level 2) requires that performance.now() should tick during sleep. It appears that only Firefox on Windows, and Chromiums on Windows keep ticking during sleep. Relevant browser bugs for other operating systems:

  • Chrome/Chromium (bug)
  • Firefox (bug)
  • Safari/WebKit (bug)

More details can also be found in the specification issue hr-time#115.

I don't understand the ramification of these bugs. For example:

  1. Should performance.now() be avoided unless my code will only run on Windows Chrome/FF?
  2. Is Date.now() almost always abetter choice because, I assume, it doesn't have these bugs?

What did you expect to see?

I expected to understand when performance.now() should/shouldn't be used because of these bugs.

I also expected to find a definition for "sleep," but when I search for that word there are no articles with that title:

image

And when I submit the search, there are results, but none of them seem relevant:

image

Do you have any supporting links, references, or citations?

n/a

Do you have anything more you want to share?

n/a

MDN metadata

Page report details
@DanKaplanSES DanKaplanSES added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 26, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label May 26, 2024
DanKaplanSES added a commit to DanKaplanSES/content that referenced this issue May 26, 2024
A comment at the end of hr-time mdn#115 summarized the issue well so I thought it might be more helpful to link directly to it. 

The top of the issue has more to do with getting others on the same page re: the exact details of this issue.

Ref: w3c/hr-time#115
Ref: mdn#33760
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
2 participants