Current time: 09-20-2020, 12:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anything that is close to fetchStart in resource timing API?
07-16-2014, 10:11 AM
Post: #1
Anything that is close to fetchStart in resource timing API?
Resource Timing API defines this:

"If there are no HTTP redirects or equivalent, this attribute must return the time immediately before the user agent starts to fetch the resource."

What could be a corresponding field in the WPT HAR file? This event definitely happens before the dns lookup starts. But, the lowest start value in WPT for a given resource is _all_start which, I think, cannot be less than _dns_start and so I am not sure if WPT provides this metric at all.
Find all posts by this user
Quote this message in a reply
07-21-2014, 03:48 AM
Post: #2
RE: Anything that is close to fetchStart in resource timing API?
The resource timing definition is defining fetchStart as when the UA actually puts the request on the wire so my view it's the earliest of _dns_start, _connect_start, and _ttfb_start in WPT terms.

If you want to verify you can use a WPT custom metric to dump the resource timing entries into a JSON string:

Code:
[resource-timing]
return JSON.stringify(window.performance.getEntriesByType("resource"));

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)