Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
How to use performance.measure in firefox,

When I run this simple code in console :

performance.mark('start-mark');
performance.mark('stop-mark');

performance.measure('name','start-mark','stop-mark');

performance.measure returns PerformanceMeasure object (as in documentation https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure). The problem is that everything works fine in chrome, edge and safari. Unfortunately in firefox it reutrns undefined.

Beside documentation I checked also in caniuse.com and it should work.

Can you help me to run this "code" in firefox (version 93 - actual).

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This appears to be a known implementation inconsistency in Firefox.

From https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure#browser_compatibility):

A table showing browser compatibility and indicating that Firefox returns undefined

I worked around this using Performance.getEntriesByName:

performance.mark('start-mark');
performance.mark('stop-mark');
performance.measure('name', 'start-mark', 'stop-mark');

console.log(performance.getEntriesByName('name', 'measure')[0]);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!