question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Negative TTFB on Firefox

See original GitHub issue

I’m seeing instances of negative values of getTTFB(), exclusively on Firefox, despite the docs claiming that Firefox is a supported browser.

image

Seems related to this issue.

If it helps, I found that these Navigation Timing attributes are also negative in these cases.

connect_end
connect_start
domain_lookup_start
fetch_start
redirect_end
redirect_start
request_start
response_end
response_start
secure_connection_start
time_to_first_byte

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bradfrostycommented, May 5, 2021

@nicjansma wrote a great blog post about Navigation Timing in Practice several years back. It might be a bit out of date, but there’s some useful context in there including a list of browser bugs (at the time) such as responseStart being reported prior to navigationStart (Ctrl-F for “Browser Bugs”).

+1 for adding to the library. His suggestion was:

If you’re analyzing NavigationTiming data, you should ensure that all timestamps increment according to the timeline. If not, you should probably question all of the timestamps and discard.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Time to First Byte (TTFB) – Easy to Understand, Difficult to ...
TTFB is the time it takes to request information from the server and send the ... few seconds) and are more likely to...
Read more >
Performance Auditing: A Firefox Developer Tools Deep Dive
In other performance analysis tools like WebPageTest.org or Chrome's DevTools, this is called TTFB or Time to First Byte. There's also DNS ...
Read more >
Bad Request Your browser sent a request ... - Mozilla Support
Chosen solution​​ This issue can be caused by corrupted cookies. Clear the Cache and remove the Cookies for websites that cause problems via...
Read more >
Improving Search Rank by Optimizing Your Time to First Byte
In that study, we found a clear correlation between a faster time to first byte (TTFB) and a higher search engine rank. While...
Read more >
Time to First Byte (TTFB) - web.dev
It helps identify when a web server is too slow to respond to requests. In the case of navigation requests—that is, requests for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found