Skip to content

performance.now() may return non-integers in some browsers #42952

@JackDunnCodes

Description

@JackDunnCodes

MDN URL

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

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

Firefox produces an integer when calling this function. However, Chromium can (and often does) produce a decimal. This information is seemingly missing from this page. This caused strange bugs for me that were difficult to debug until I realised I was using Firefox, and the user was using Chrome.

What did you expect to see?

A section somewhere (not sure where, otherwise I'd write a PR myself) to detail the difference in behaviour between browser. I do not feel the tiny footnote in the compatibility table is enough.

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

No response

Do you have anything more you want to share?

Happy to assist with further detail should you need it, or to write a PR myself with your guidance, don't hesitate to reply.

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebAPIWeb API docsaccepting PRFeel free to open a PR to resolve this issuegoal: completeness(Experiment label) Issues about content missing important/relevant details.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions