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

195
Views
Get page load time in react by PerformanceNavigationTiming

I used to get page load time in my react project by window.performance.timing but I found that This property is deprecated. so I tried to get load time by PerformanceNavigationTiming. This is the code:

window.addEventListener("load", function() {
    const page_load_time = performance.getEntriesByType("navigation")[0];
    console.log(page_load_time);
    console.log(`${page_load_time.loadEventEnd}`);
});

console.log(page_load_time); give me an object that contains loadEventEnd number in ms but console.log(${page_load_time.loadEventEnd}); gives me zero

  1. Why zero?
  2. Is this the right way to get page load time?
about 4 years ago · Juan Pablo Isaza
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!