The PerformanceTiming interface is a legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page.

This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.

MDN Reference

interface PerformanceTiming {
    connectEnd: number;
    connectStart: number;
    domainLookupEnd: number;
    domainLookupStart: number;
    domComplete: number;
    domContentLoadedEventEnd: number;
    domContentLoadedEventStart: number;
    domInteractive: number;
    domLoading: number;
    fetchStart: number;
    loadEventEnd: number;
    loadEventStart: number;
    navigationStart: number;
    redirectEnd: number;
    redirectStart: number;
    requestStart: number;
    responseEnd: number;
    responseStart: number;
    secureConnectionStart: number;
    unloadEventEnd: number;
    unloadEventStart: number;
    toJSON(): any;
}
Index

Properties

connectEnd: number

The legacy PerformanceTiming.connectEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, where the connection is opened network.

MDN Reference

connectStart: number

The legacy PerformanceTiming.connectStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, where the request to open a connection is sent to the network.

MDN Reference

domainLookupEnd: number

The legacy PerformanceTiming.domainLookupEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, where the domain lookup is finished.

MDN Reference

domainLookupStart: number

The legacy PerformanceTiming.domainLookupStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, where the domain lookup starts.

MDN Reference

domComplete: number

The legacy PerformanceTiming.domComplete read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to 'complete' and the corresponding Document/readystatechange_event event is thrown.

MDN Reference

domContentLoadedEventEnd: number

The legacy PerformanceTiming.domContentLoadedEventEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, right after all the scripts that need to be executed as soon as possible, in order or not, has been executed.

MDN Reference

domContentLoadedEventStart: number

The legacy PerformanceTiming.domContentLoadedEventStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, right before the parser sent the executed right after parsing has been executed.

MDN Reference

domInteractive: number

The legacy PerformanceTiming.domInteractive read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to 'interactive' and the corresponding Document/readystatechange_event event is thrown.

MDN Reference

domLoading: number

The legacy PerformanceTiming.domLoading read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the parser started its work, that is when its corresponding Document/readystatechange_event event is thrown.

MDN Reference

fetchStart: number

The legacy PerformanceTiming.fetchStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request.

MDN Reference

loadEventEnd: number

The legacy PerformanceTiming.loadEventEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event handler terminated, that is when the load event is completed.

MDN Reference

loadEventStart: number

The legacy PerformanceTiming.loadEventStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event was sent for the current document.

MDN Reference

navigationStart: number

The legacy PerformanceTiming.navigationStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context.

MDN Reference

redirectEnd: number

The legacy PerformanceTiming.redirectEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when the last byte of the HTTP response has been received.

MDN Reference

redirectStart: number

The legacy PerformanceTiming.redirectStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, the first HTTP redirect starts.

MDN Reference

requestStart: number

The legacy PerformanceTiming.requestStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the browser sent the request to obtain the actual document, from the server or from a cache.

MDN Reference

responseEnd: number

The legacy PerformanceTiming.responseEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the browser received the last byte of the response, or when the connection is closed if this happened first, from the server from a cache or from a local resource.

MDN Reference

responseStart: number

The legacy PerformanceTiming.responseStart read-only property returns an unsigned long long representing the moment in time (in milliseconds since the UNIX epoch) when the browser received the first byte of the response from the server, cache, or local resource.

MDN Reference

secureConnectionStart: number

The legacy PerformanceTiming.secureConnectionStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, where the secure connection handshake starts.

MDN Reference

unloadEventEnd: number

The legacy PerformanceTiming.unloadEventEnd read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event handler finishes.

MDN Reference

unloadEventStart: number

The legacy PerformanceTiming.unloadEventStart read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event has been thrown.

MDN Reference

Methods

  • The legacy toJSON() method of the PerformanceTiming interface is a Serialization; it returns a JSON representation of the PerformanceTiming object.

    Returns any

    MDN Reference