Resource Timing

W3C Candidate Recommendation Draft,

More details about this document
This version:
https://www.w3.org/TR/2026/CRD-resource-timing-20260217/
Latest published version:
https://www.w3.org/TR/resource-timing/
Editor's Draft:
https://w3c.github.io/resource-timing/
Previous Versions:
History:
https://www.w3.org/standards/history/resource-timing/
Feedback:
public-web-perf@w3.org with subject line “[resource-timing] … message topic …” (archives)
GitHub
Implementation Report:
https://w3c.github.io/test-results/resource-timing/all.html
Editors:
Yoav Weiss (Shopify)
(Google)
Former Editors:
Ilya Grigorik (Google)
(Microsoft Corp.)
(Google Inc.)
(Microsoft Corp.)
Zhiheng Wang (Google Inc.)
Anderson Quach (Microsoft Corp.)

Abstract

This specification defines an interface for web applications to access the complete timing information for resources in a document.

Status of this document

This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C standards and drafts index.

This document was published by the Web Performance Working Group as a Candidate Recommendation Draft using the Recommendation track. Publication as a Candidate Recommendation does not imply endorsement by W3C and its Members. A Candidate Recommendation Draft integrates changes from the previous Candidate Recommendation that the Working Group intends to include in a subsequent Candidate Recommendation Snapshot.

This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than a work in progress.

GitHub Issues are preferred for discussion of this specification.

This document is governed by the 18 August 2025 W3C Process Document.

This document was produced by a group operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent that the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

1. Introduction

User latency is an important quality benchmark for Web Applications. While JavaScript-based mechanisms can provide comprehensive instrumentation for user latency measurements within an application, in many cases, they are unable to provide a complete end-to-end latency picture. This document introduces the PerformanceResourceTiming interface to allow JavaScript mechanisms to collect complete timing information related to resources on a document. Navigation Timing 2 [NAVIGATION-TIMING-2] extends this specification to provide additional timing information associated with a navigation.

For example, the following JavaScript shows a simple attempt to measure the time it takes to fetch a resource:

<!doctype html>
<html>
  <head>
  </head>
  <body onload="loadResources()">
    <script>
        function loadResources()
        {
          var start = new Date().getTime();
          var image1 = new Image();
          var resourceTiming = function() {
              var now = new Date().getTime();
              var latency = now - start;
              alert("End to end resource fetch: " + latency);
          };

          image1.onload = resourceTiming;
          image1.src = 'https://www.w3.org/Icons/w3c_main.png';
        }
    </script>
    <img src="https://www.w3.org/Icons/w3c_home.png">
  </body>
</html>

Though this script can measure the time it takes to fetch a resource, it cannot break down the time spent in various phases. Further, the script cannot easily measure the time it takes to fetch resources described in markup.

To address the need for complete information on user experience, this document introduces the PerformanceResourceTiming interface. This interface allows JavaScript mechanisms to provide complete client-side latency measurements within applications. With this interface, the previous example can be modified to measure a user’s perceived load time of a resource.

The following script calculates the amount of time it takes to fetch every resource in the page, even those defined in markup. This example assumes that this page is hosted on https://www.w3.org. One could further measure the amount of time it takes in every phase of fetching a resource with the PerformanceResourceTiming interface.

<!doctype html>
<html>
  <head>
  </head>
  <body onload="loadResources()">
    <script>
      function loadResources()
      {
          var image1 = new Image();
          image1.onload = resourceTiming;
          image1.src = 'https://www.w3.org/Icons/w3c_main.png';
      }

      function resourceTiming()
      {
          var resourceList = window.performance.getEntriesByType("resource");
          for (i = 0; i < resourceList.length; i++)
          {
              if (resourceList[i].initiatorType == "img")
              {
                alert("End to end resource fetch: " + (resourceList[i].responseEnd - resourceList[i].startTime));
              }
          }
      }
    </script>
    <img id="image0" src="https://www.w3.org/Icons/w3c_home.png">
  </body>
</html>

2. Terminology

The construction "a Foo object", where Foo is actually an interface, is sometimes used instead of the more accurate "an object implementing the interface Foo.

Throughout this work, all time values are measured in milliseconds since the start of navigation of the document [HR-TIME]. For example, the start of navigation of the document occurs at time 0.

This definition of time is based on the High Resolution Time specification [HR-TIME] and is different from the definition of time used in the Navigation Timing specification [NAVIGATION-TIMING-2], where time is measured in milliseconds since midnight of January 1, 1970 (UTC).

3. Resource Timing

3.1. Introduction

The PerformanceResourceTiming interface facilitates timing measurement of fetched http(s) resources. For example, this interface is available for XMLHttpRequest objects [XHR], HTML elements [HTML] such as iframe, img, script, object, embed and link with the link type of stylesheet, SVG elements [SVG11] such as svg, and EventSource.

3.2. Resources Included in the PerformanceResourceTiming Interface

This section is non-normative.

Resource Requests fetched by a non-null client are included as PerformanceResourceTiming objects in the client’s global object’s Performance Timeline, unless excluded from the timeline as part of the fetching process. Resources that are retrieved from HTTP cache are included as PerformanceResourceTiming objects in the Performance Timeline. Resources for which the fetch was initiated, but was later aborted (e.g. due to a network error) are included as PerformanceResourceTiming objects in the Performance Timeline, with their start and end timing.

Examples:

3.3. The PerformanceResourceTiming Interface

[Exposed=(Window,Worker)]
interface PerformanceResourceTiming : PerformanceEntry {
    readonly attribute DOMString initiatorType;
    readonly attribute DOMString deliveryType;
    readonly attribute ByteString nextHopProtocol;
    readonly attribute DOMHighResTimeStamp workerStart;
    readonly attribute DOMHighResTimeStamp redirectStart;
    readonly attribute DOMHighResTimeStamp redirectEnd;
    readonly attribute DOMHighResTimeStamp fetchStart;
    readonly attribute DOMHighResTimeStamp domainLookupStart;
    readonly attribute DOMHighResTimeStamp domainLookupEnd;
    readonly attribute DOMHighResTimeStamp connectStart;
    readonly attribute DOMHighResTimeStamp connectEnd;
    readonly attribute DOMHighResTimeStamp secureConnectionStart;
    readonly attribute DOMHighResTimeStamp requestStart;
    readonly attribute DOMHighResTimeStamp finalResponseHeadersStart;
    readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
    readonly attribute DOMHighResTimeStamp responseStart;
    readonly attribute DOMHighResTimeStamp responseEnd;
    readonly attribute DOMHighResTimeStamp workerRouterEvaluationStart;
    readonly attribute DOMHighResTimeStamp workerCacheLookupStart;
    readonly attribute DOMString workerMatchedRouterSource;
    readonly attribute DOMString workerFinalRouterSource;
    readonly attribute unsigned long long  transferSize;
    readonly attribute unsigned long long  encodedBodySize;
    readonly attribute unsigned long long  decodedBodySize;
    readonly attribute unsigned short responseStatus;
    readonly attribute RenderBlockingStatusType renderBlockingStatus;
    readonly attribute DOMString contentType;
    readonly attribute DOMString contentEncoding;
    [Default] object toJSON();
};

A PerformanceResourceTiming has an associated DOMString initiator type.

A PerformanceResourceTiming has an associated DOMString delivery type.

A PerformanceResourceTiming has an associated DOMString requested URL.

A PerformanceResourceTiming has an associated DOMString cache mode (the empty string, "local", or "validated").

A PerformanceResourceTiming has an associated fetch timing info timing info.

A PerformanceResourceTiming has an associated response body info resource info.

A PerformanceResourceTiming has an associated status response status.

A PerformanceResourceTiming has an associated RenderBlockingStatusType render-blocking status.

When toJSON is called, run the default toJSON steps for PerformanceResourceTiming.

initiatorType getter steps are to return the initiator type for this.

initiatorType returns one of the following values:

  • "navigation", if the request is a navigation request;
  • "body", if the request is a result of processing the body element’s background attribute that’s already obsolete.
  • "css", if the request is a result of processing a CSS url() directive such as @import url() or background: url(); [CSS-VALUES]

    Note: the request for a font resource specified with @font-face in CSS is a result of processing a CSS directive. Therefore, the initiatorType for this font resource is "css".

  • "script", if the request is a result of loading any script (a classic script, a module script, or a Worker).
  • "xmlhttprequest", if the request is a result of processing an XMLHttpRequest;
  • "font", if the request is the result of processing fonts. This can happen when fonts request subsequent resources, e.g, when Incremental Font Transfer [INCREMENTAL_FONT_TRANSFER] is used.
  • "fetch", if the request is the result of processing the fetch() method;
  • "beacon", if the request is the result of processing the sendBeacon() method; [BEACON]
  • "video", if the request is the result of processing the video element’s poster or src.
  • "audio", if the request is the result of processing the audio element’s src.
  • "track", if the request is the result of processing the track element’s src.
  • "img", if the request is the result of processing the img element’s src or srcset.
  • "image", if the request is the result of processing the image element. [SVG2]
  • "input", if the request is the result of processing an input element of type image.
  • "ping", if the request is the result of processing an a element’s ping.
  • "iframe", if the request is the result of processing an iframe’s src.
  • "frame", if the request is the result of loading a frame.
  • "embed", if the request is the result of processing an embed element’s src.
  • "link", if the request is the result of processing an link element.
  • "object", if the request is the result of processing an object element.
  • "early-hints", if the request is the result of processing an Early Hints [EARLY_HINTS] response.
  • "other", if none of the above conditions match.

The setting of initiatorType is done at the different places where a resource timing entry is reported, such as the fetch standard.

deliveryType getter steps are to return the delivery type for this.

deliveryType returns one of the following values:

  • "cache", if the cache mode is not the empty string.
  • the empty string "", if none of the above conditions match.

This is expected to be expanded by future updates to this specification, e.g. to describe consuming preloaded resources and prefetched navigation requests.

The workerStart getter steps are to convert fetch timestamp for this’s timing info’s final service worker start time and the relevant global object for this. See HTTP fetch for more info.

The redirectStart getter steps are to convert fetch timestamp for this’s timing info’s redirect start time and the relevant global object for this. See HTTP-redirect fetch for more info.

The redirectEnd getter steps are to convert fetch timestamp for this’s timing info’s redirect end time and the relevant global object for this. See HTTP-redirect fetch for more info.

The fetchStart getter steps are to convert fetch timestamp for this’s timing info’s post-redirect start time and the relevant global object for this. See HTTP fetch for more info.

The domainLookupStart getter steps are to convert fetch timestamp for this’s timing info’s final connection timing info’s domain lookup start time and the relevant global object for this. See Recording connection timing info for more info.

The domainLookupEnd getter steps are to convert fetch timestamp for this’s timing info’s final connection timing info’s domain lookup end time and the relevant global object for this. See Recording connection timing info for more info.

The connectStart getter steps are to convert fetch timestamp for this’s timing info’s final connection timing info’s connection start time and the relevant global object for this. See Recording connection timing info for more info.

The connectEnd getter steps are to convert fetch timestamp for this’s timing info’s final connection timing info’s connection end time and the relevant global object for this. See Recording connection timing info for more info.

The secureConnectionStart getter steps are to convert fetch timestamp for this’s timing info’s final connection timing info’s secure connection start time and the relevant global object for this. See Recording connection timing info for more info.

The nextHopProtocol getter steps are to isomorphic decode this’s timing info’s final connection timing info’s ALPN negotiated protocol. See Recording connection timing info for more info.

Issue 221 suggests to remove support for nextHopProtocol, as it can reveal details about the user’s network configuration.

The requestStart getter steps are to convert fetch timestamp for this’s timing info’s final network-request start time and the relevant global object for this. See HTTP fetch for more info.

The firstInterimResponseStart getter steps are to convert fetch timestamp for this’s timing info’s first interim network-response start time and the relevant global object for this. See HTTP fetch for more info.

The finalResponseHeadersStart getter steps are to convert fetch timestamp for this’s timing info’s final network-response start time and the relevant global object for this. See HTTP fetch for more info.

The responseStart getter steps are to return this’s firstInterimResponseStart if it is not 0; Otherwise this’s finalResponseHeadersStart.

The responseEnd getter steps are to convert fetch timestamp for this’s timing info’s end time and the relevant global object for this. See fetch for more info.

The encodedBodySize getter steps are to return this’s resource info’s encoded size.

The decodedBodySize getter steps are to return this’s resource info’s decoded size.

The transferSize getter steps are:

  1. If this’s cache mode is "local", then return 0.

  2. If this’s cache mode is "validated", then return 300.

  3. Return this’s resource info’s encoded size plus 300.

    The constant number added to transferSize replaces exposing the total byte size of the HTTP headers, as that might expose the presence of certain cookies. See this issue.

The responseStatus getter steps are to return this’s response status.

responseStatus is determined in Fetch. For a cross-origin no-cors request it would be 0 because the response would be an opaque filtered response.

The contentType getter steps are to return this’s resource info’s content type.

The contentEncoding getter steps are to return this’s resource info’s content encoding.

The renderBlockingStatus getter steps are to return blocking if this’s timing info’s render-blocking is true; otherwise non-blocking.

The workerRouterEvaluationStart getter steps are to return this’s timing info’s service worker timing info’s worker router evaluation start.

The workerCacheLookupStart getter steps are to return this’s timing info’s service worker timing info’s worker cache lookup start.

The workerMatchedRouterSource getter steps are to return this’s timing info’s service worker timing info’s worker matched router source.

The workerFinalRouterSource getter steps are to return this’s timing info’s service worker timing info’s worker final router source.

A user agent implementing PerformanceResourceTiming would need to include "resource" in supportedEntryTypes. This allows developers to detect support for Resource Timing.

3.3.1. RenderBlockingStatusType enum

enum RenderBlockingStatusType {
    "blocking",
    "non-blocking"
};

The values are defined as follows:

blocking
The resource can potentially block rendering.
non-blocking
The resource will not block rendering.

3.4. Extensions to the Performance Interface

The user agent MAY choose to limit how many resources are included as PerformanceResourceTiming objects in the Performance Timeline [PERFORMANCE-TIMELINE-2]. This section extends the Performance interface to allow controls over the number of PerformanceResourceTiming objects stored.

The recommended minimum number of PerformanceResourceTiming objects is 250, though this may be changed by the user agent. setResourceTimingBufferSize can be called to request a change to this limit.

Each ECMAScript global environment has:

  • A resource timing buffer size limit which should initially be 250 or greater.
  • A resource timing buffer current size which is initially 0.
  • A resource timing buffer full event pending flag which is initially false.
  • A resource timing secondary buffer current size which is initially 0.
  • A resource timing secondary buffer to store PerformanceResourceTiming objects that is initially empty.
partial interface Performance {  undefined clearResourceTimings ();
  undefined setResourceTimingBufferSize (unsigned long maxSize);
  attribute EventHandler onresourcetimingbufferfull;
};

The Performance interface is defined in [HR-TIME].

The method clearResourceTimings runs the following steps:

  1. Remove all PerformanceResourceTiming objects in the performance entry buffer.
  2. Set resource timing buffer current size to 0.

The setResourceTimingBufferSize method runs the following steps:

  1. Set resource timing buffer size limit to the maxSize parameter. If the maxSize parameter is less than resource timing buffer current size, no PerformanceResourceTiming objects are to be removed from the performance entry buffer.

The attribute onresourcetimingbufferfull is the event handler for the resourcetimingbufferfull event described below.

To check if can add resource timing entry, run the following steps:

  1. If resource timing buffer current size is smaller than resource timing buffer size limit, return true.
  2. Return false.

To add a PerformanceResourceTiming entry new entry into the performance entry buffer, run the following steps:

  1. If can add resource timing entry returns true and resource timing buffer full event pending flag is false, run the following substeps:
    1. Add new entry to the performance entry buffer.
    2. Increase resource timing buffer current size by 1.
    3. Return.
  2. If resource timing buffer full event pending flag is false, run the following substeps:
    1. Set resource timing buffer full event pending flag to true.
    2. Queue a task on the performance timeline task source to run fire a buffer full event.
  3. Add new entry to the resource timing secondary buffer.
  4. Increase resource timing secondary buffer current size by 1.

To copy secondary buffer, run the following steps:

  1. While resource timing secondary buffer is not empty and can add resource timing entry returns true, run the following substeps:
    1. Let entry be the oldest PerformanceResourceTiming in resource timing secondary buffer.
    2. Add entry to the end of performance entry buffer.
    3. Increment resource timing buffer current size by 1.
    4. Remove entry from resource timing secondary buffer.
    5. Decrement resource timing secondary buffer current size by 1.

To fire a buffer full event, run the following steps:

  1. While resource timing secondary buffer is not empty, run the following substeps:
    1. Let number of excess entries before be resource timing secondary buffer current size.
    2. If can add resource timing entry returns false, then fire an event named resourcetimingbufferfull at the Performance object.
    3. Run copy secondary buffer.
    4. Let number of excess entries after be resource timing secondary buffer current size.
    5. If number of excess entries before is lower than or equals number of excess entries after, then remove all entries from resource timing secondary buffer, set resource timing secondary buffer current size to 0, and abort these steps.
  2. Set resource timing buffer full event pending flag to false.

    This means that if the resourcetimingbufferfull event handler does not add more room in the buffer than it adds resources to it, excess entries will be dropped from the buffer. Developers need to make sure that resourcetimingbufferfull event handlers call clearResourceTimings or extend the buffer sufficiently (by calling setResourceTimingBufferSize).

3.5. Cross-origin Resources

3.5.1. Introduction

As detailed in Fetch, requests for cross-origin resources are included as PerformanceResourceTiming objects in the Performance Timeline.

If the timing allow check algorithm fails for a cross-origin resource, the entry will be an opaque entry. Such entries have most of their attributes masked in order to prevent leaking cross-origin data that isn’t otherwise exposed. So, for an opaque entry, the following attributes will always return zero or the empty string: redirectStart, redirectEnd, workerStart, domainLookupStart, domainLookupEnd, connectStart, connectEnd, requestStart, firstInterimResponseStart, finalResponseHeadersStart, responseStart, secureConnectionStart, and nextHopProtocol.

Some of the properties, like contentType, encodedBodySize, and decodedBodySize are set to zero (or the empty string in the case of contentType) when the response is CORS-cross-origin.

transferSize is affected both by the timing allow check and by the CORS-cross-origin status.

For requests handled by a service worker using respondWith(), the reported timing data reflects the interaction between the client and the service worker, rather than the service worker’s own internal network activity. For example, the service worker might respond to a same-origin request with a cross-origin response or vice versa, or return a cached or synthetic response to either. Given that, resources forwarded from a service worker do not tell the whole story of fetching the resource, and do not go through the timing allow check. To get the full information about those fetches, the service worker’s own performance timeline can be inspected. [SERVICE-WORKERS]

For more details, see HTTP Fetch #4 - the timing allow check is only performed when there is no response from the service worker. In addition, the response cloned in the respondWith() algorithm does not carry the fetch timing info of the internal fetch, as that information is attached to a fetch rather than to a response.

3.5.2. Timing-Allow-Origin Response Header

Server-side applications may return the Timing-Allow-Origin HTTP response header to allow the User Agent to fully expose, to the document origin(s) specified, the values of attributes that would have been zero due to those cross-origin restrictions.

The Timing-Allow-Origin HTTP response header field can be used to communicate a policy indicating origin(s) that may be allowed to see values of attributes that would have been zero due to the cross-origin restrictions. The header’s value is represented by the following ABNF [RFC5234] (using List Extension, [RFC9110]):

Timing-Allow-Origin = 1#( origin-or-null / wildcard )

The sender MAY generate multiple Timing-Allow-Origin header fields. The recipient MAY combine multiple Timing-Allow-Origin header fields by appending each subsequent field value to the combined field value in order, separated by a comma.

The user agent MAY still enforce cross-origin restrictions and set transferSize, encodedBodySize, and decodedBodySize attributes to zero, even with Timing-Allow-Origin HTTP response header fields. If it does, it MAY also set deliveryType to "".

The Timing-Allow-Origin headers are processed in FETCH to compute the attributes accordingly.

The Timing-Allow-Origin header might arrive as part of a cached response. In case of cache revalidation, according to RFC 7234, the header’s value might come from the revalidation response, or if not present there, from the original cached resource.

Issues 222 and 223 suggest to remove wildcard support from Timing-Allow-Origin in order to restrict its use.

3.5.3. IANA Considerations

This section registers Timing-Allow-Origin as a Provisional Message Header.

Header field name:
Timing-Allow-Origin
Applicable protocol:
http
Status:
provisional
Author/Change controller:
W3C
Specification document:
§ 3.5.2 Timing-Allow-Origin Response Header

3.6. Resource Timing Attributes

This section is non-normative.

The following graph illustrates the timing attributes defined by the PerformanceResourceTiming interface. Attributes in parenthesis may not be available when fetching cross-origin resources. User agents may perform internal processing in between timings, which allow for non-normative intervals between timings.

This figure illustrates the timing attributes defined by the PerformanceResourceTiming interface. Attributes in parenthesis indicate that they may not be available if the resource fails the timing allow check algorithm.
Resource Timing attributes

4. Creating a resource timing entry

To mark resource timing given a fetch timing info timingInfo, a DOMString requestedURL, a DOMString initiatorType a global object global, a string cacheMode, a response body info bodyInfo, a status responseStatus, and an optional string deliveryType (by default, the empty string), perform the following steps:

  1. Create a PerformanceResourceTiming object entry in global’s realm.
  2. Setup the resource timing entry for entry, given initiatorType, requestedURL, timingInfo, cacheMode, bodyInfo, responseStatus, and deliveryType.
  3. Queue a PerformanceEntry entry.
  4. Add entry to global’s performance entry buffer.

To setup the resource timing entry for PerformanceResourceTiming entry given DOMString initiatorType, DOMString requestedURL, fetch timing info timingInfo, a DOMString cacheMode, a response body info bodyInfo, a status responseStatus, and an optional DOMString deliveryType (by default, the empty string), perform the following steps:

  1. Assert that cacheMode is the empty string, "local", or "validated".
  2. Let global be entry’s relevant global object.
  3. Initialize entry given the result of converting timingInfo’s start time given global, "resource", requestedURL, and the result of converting timingInfo’s end time given global.
  4. Set entry’s initiator type to initiatorType.
  5. Set entry’s requested URL to requestedURL.
  6. Set entry’s timing info to timingInfo.
  7. Set entry’s resource info to bodyInfo.
  8. Set entry’s cache mode to cacheMode.
  9. Set entry’s response status to responseStatus.
  10. If deliveryType is the empty string and cacheMode is not, then set deliveryType to "cache".
  11. Set entry’s delivery type to deliveryType.

To convert fetch timestamp given DOMHighResTimeStamp ts and global object global, do the following:

  1. If ts is zero, return zero.
  2. Otherwise, return the relative high resolution coarse time given ts and global.

5. Security Considerations

The PerformanceResourceTiming interface exposes timing information for a resource to any web page or worker that has requested that resource. To limit the access to the PerformanceResourceTiming interface, the same origin policy is enforced by default and certain attributes are set to zero, as described in HTTP fetch. Resource providers can explicitly allow all timing information to be collected for a resource by adding the Timing-Allow-Origin HTTP response header, which specifies the domains that are allowed to access the timing information.

6. Privacy Considerations

Statistical fingerprinting is a privacy concern where a malicious web site might determine whether a user has visited a third-party web site by measuring the timing of cache hits and misses of resources in the third-party web site. Though the PerformanceResourceTiming interface gives timing information for resources in a document, the load event on resources can already measure timing to determine cache hits and misses in a limited fashion, and the cross-origin restrictions in HTTP Fetch prevent the leakage of any additional information.

7. Acknowledgments

Thanks to Anne Van Kesteren, Annie Sullivan, Arvind Jain, Boris Zbarsky, Darin Fisher, Jason Weber, Jonas Sicking, James Simonsen, Karen Anderson, Kyle Scholz, Nic Jansma, Philippe Le Hegaret, Sigbjørn Vik, Steve Souders, Todd Reifsteck, Tony Gentilcore, William Chan, and Alex Christensen for their contributions to this work.

Conformance

Document conventions

Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification.

All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. [RFC2119]

Examples in this specification are introduced with the words “for example” or are set apart from the normative text with class="example", like this:

This is an example of an informative example.

Informative notes begin with the word “Note” and are set apart from the normative text with class="note", like this:

Note, this is an informative note.

Conformant Algorithms

Requirements phrased in the imperative as part of algorithms (such as "strip any leading space characters" or "return false and abort these steps") are to be interpreted with the meaning of the key word ("must", "should", "may", etc) used in introducing the algorithm.

Conformance requirements phrased as algorithms or specific steps can be implemented in any manner, so long as the end result is equivalent. In particular, the algorithms defined in this specification are intended to be easy to understand and are not intended to be performant. Implementers are encouraged to optimize.

Index

Terms defined by this specification

Terms defined by reference

References

Normative References

[DOM]
Anne van Kesteren. DOM Standard. Living Standard. URL: https://dom.spec.whatwg.org/
[FETCH]
Anne van Kesteren. Fetch Standard. Living Standard. URL: https://fetch.spec.whatwg.org/
[HR-TIME]
Yoav Weiss. High Resolution Time. 7 November 2024. WD. URL: https://www.w3.org/TR/hr-time-3/
[HTML]
Anne van Kesteren; et al. HTML Standard. Living Standard. URL: https://html.spec.whatwg.org/multipage/
[INFRA]
Anne van Kesteren; Domenic Denicola. Infra Standard. Living Standard. URL: https://infra.spec.whatwg.org/
[PERFORMANCE-TIMELINE-2]
Nicolas Pena Moreno. Performance Timeline. 21 May 2025. CRD. URL: https://www.w3.org/TR/performance-timeline/
[RFC2119]
S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. March 1997. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
[SERVICE-WORKERS]
Monica CHINTALA; Yoshisato Yanagisawa. Service Workers Nightly. 26 January 2026. CRD. URL: https://www.w3.org/TR/service-workers/
[WEBIDL]
Edgar Chen; Timothy Gu. Web IDL Standard. Living Standard. URL: https://webidl.spec.whatwg.org/

Informative References

[BEACON]
Ilya Grigorik; Alois Reitbauer. Beacon. 3 August 2022. CRD. URL: https://www.w3.org/TR/beacon/
[CSS-VALUES]
Tab Atkins Jr.; Elika Etemad. CSS Values and Units Module Level 4. 12 March 2024. WD. URL: https://www.w3.org/TR/css-values-4/
[EARLY_HINTS]
Early hints. URL: https://httpwg.org/specs/rfc8297.html
[INCREMENTAL_FONT_TRANSFER]
Incremental Font Transfer. URL: https://www.w3.org/TR/IFT/
[NAVIGATION-TIMING-2]
Yoav Weiss; Noam Rosenthal. Navigation Timing Level 2. 5 December 2025. WD. URL: https://www.w3.org/TR/navigation-timing-2/
[RFC2397]
L. Masinter. The "data" URL scheme. August 1998. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc2397
[RFC5234]
D. Crocker, Ed.; P. Overell. Augmented BNF for Syntax Specifications: ABNF. January 2008. Internet Standard. URL: https://www.rfc-editor.org/rfc/rfc5234
[RFC9110]
R. Fielding, Ed.; M. Nottingham, Ed.; J. Reschke, Ed.. HTTP Semantics. June 2022. Internet Standard. URL: https://httpwg.org/specs/rfc9110.html
[SVG11]
Erik Dahlström; et al. Scalable Vector Graphics (SVG) 1.1 (Second Edition). 16 August 2011. REC. URL: https://www.w3.org/TR/SVG11/
[SVG2]
Amelia Bellamy-Royds; et al. Scalable Vector Graphics (SVG) 2. 4 October 2018. CR. URL: https://www.w3.org/TR/SVG2/
[XHR]
Anne van Kesteren. XMLHttpRequest Standard. Living Standard. URL: https://xhr.spec.whatwg.org/

IDL Index

[Exposed=(Window,Worker)]
interface PerformanceResourceTiming : PerformanceEntry {
    readonly attribute DOMString initiatorType;
    readonly attribute DOMString deliveryType;
    readonly attribute ByteString nextHopProtocol;
    readonly attribute DOMHighResTimeStamp workerStart;
    readonly attribute DOMHighResTimeStamp redirectStart;
    readonly attribute DOMHighResTimeStamp redirectEnd;
    readonly attribute DOMHighResTimeStamp fetchStart;
    readonly attribute DOMHighResTimeStamp domainLookupStart;
    readonly attribute DOMHighResTimeStamp domainLookupEnd;
    readonly attribute DOMHighResTimeStamp connectStart;
    readonly attribute DOMHighResTimeStamp connectEnd;
    readonly attribute DOMHighResTimeStamp secureConnectionStart;
    readonly attribute DOMHighResTimeStamp requestStart;
    readonly attribute DOMHighResTimeStamp finalResponseHeadersStart;
    readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
    readonly attribute DOMHighResTimeStamp responseStart;
    readonly attribute DOMHighResTimeStamp responseEnd;
    readonly attribute DOMHighResTimeStamp workerRouterEvaluationStart;
    readonly attribute DOMHighResTimeStamp workerCacheLookupStart;
    readonly attribute DOMString workerMatchedRouterSource;
    readonly attribute DOMString workerFinalRouterSource;
    readonly attribute unsigned long long  transferSize;
    readonly attribute unsigned long long  encodedBodySize;
    readonly attribute unsigned long long  decodedBodySize;
    readonly attribute unsigned short responseStatus;
    readonly attribute RenderBlockingStatusType renderBlockingStatus;
    readonly attribute DOMString contentType;
    readonly attribute DOMString contentEncoding;
    [Default] object toJSON();
};

enum RenderBlockingStatusType {
    "blocking",
    "non-blocking"
};

partial interface Performance {  undefined clearResourceTimings ();
  undefined setResourceTimingBufferSize (unsigned long maxSize);
  attribute EventHandler onresourcetimingbufferfull;
};

MDN

Performance/clearResourceTimings

In all current engines.

Firefox35+Safari11+Chrome46+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
Node.jsNone
MDN

Performance/resourcetimingbufferfull_event

In all current engines.

Firefox35+Safari11+Chrome46+
OperaNoneEdge79+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
Node.jsNone
MDN

Performance/setResourceTimingBufferSize

In all current engines.

Firefox35+Safari11+Chrome46+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
Node.jsNone
MDN

Performance

In all current engines.

Firefox7+Safari8+Chrome6+
Opera?Edge79+
Edge (Legacy)12+IE9+
Firefox for Android?iOS Safari9+Chrome for Android?Android WebView37+Samsung Internet?Opera Mobile?
Node.jsNone
MDN

PerformanceResourceTiming/connectEnd

In all current engines.

Firefox31+Safari11+Chrome43+
Opera32+Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile32+
MDN

PerformanceResourceTiming/connectStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera32+Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile32+
MDN

PerformanceResourceTiming/decodedBodySize

In all current engines.

Firefox45+Safari16.4+Chrome54+
Opera?Edge79+
Edge (Legacy)17+IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/domainLookupEnd

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/domainLookupStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/encodedBodySize

In all current engines.

Firefox45+Safari16.4+Chrome54+
Opera?Edge79+
Edge (Legacy)17+IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/fetchStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/initiatorType

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/nextHopProtocol

In all current engines.

Firefox45+Safari11+Chrome61+
Opera?Edge79+
Edge (Legacy)17+IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/redirectEnd

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/redirectStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/renderBlockingStatus

In only one current engine.

FirefoxNoneSafariNoneChrome107+
Opera?Edge107+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/requestStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/responseEnd

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/responseStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/responseStatus

In only one current engine.

FirefoxNoneSafariNoneChrome109+
Opera?Edge109+
Edge (Legacy)?IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/secureConnectionStart

In all current engines.

Firefox31+Safari11+Chrome43+
Opera?Edge79+
Edge (Legacy)18IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/toJSON

In all current engines.

Firefox34+Safari11+Chrome45+
Opera?Edge79+
Edge (Legacy)16+IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/transferSize

In all current engines.

Firefox45+Safari16.4+Chrome54+
Opera?Edge79+
Edge (Legacy)17+IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

PerformanceResourceTiming/workerStart

In all current engines.

Firefox58+Safari11+Chrome46+
Opera32+Edge79+
Edge (Legacy)16+IENone
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile32+
MDN

PerformanceResourceTiming

In all current engines.

Firefox31+Safari11+Chrome29+
Opera?Edge79+
Edge (Legacy)12+IE10+
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?
MDN

Headers/Timing-Allow-Origin

In all current engines.

FirefoxYesSafariYesChromeYes
Opera?EdgeYes
Edge (Legacy)NoneIE?
Firefox for Android?iOS Safari?Chrome for Android?Android WebView?Samsung Internet?Opera Mobile?