Skip to content

Commit

Permalink
Resource Timing integration
Browse files Browse the repository at this point in the history
This defines the foundation for the PerformanceResourceTiming API and its properties. Note that the names used here are not a 1:1 match, e.g., post-redirect start time is fetchStart in the API.

Note that Fetch doesn't decide when to create and enqueue PerformanceResourceTiming objects, but rather creates a data structure that holds the different time values, and it's up to the caller to invoke the newly-added finalize and report timing. Fetch also has a new callback, processResponseDone, for when the response errors or EOFs, which lets callers like the fetch() API invoke finalize and report timing at the right time. This change also makes fetch() adopt that.

It's the first phase for addressing w3c/resource-timing#252, which contains a link to the other required steps to address Resource Timing/Navigation Timing/HTML/Fetch integration.

Corresponding Resource Timing PR: w3c/resource-timing#261. (Once that lands there'll be a subsequent change to Fetch to resolve the remaining TODO.)

Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
  • Loading branch information
noamr and annevk authored Mar 25, 2021
1 parent 59da2a4 commit 73f01f7
Showing 1 changed file with 352 additions and 25 deletions.
Loading

0 comments on commit 73f01f7

Please sign in to comment.