coderef

PerformanceTiming and PerformanceNavigationLimited availability

The window.performance.timing and window.performance.navigation APIs report performance timing information for events that occur during the loading and use of the current page.

Not yet supported in all major browsers — check the table and provide a fallback.

Discouraged: This feature is supserseded by the PerformanceNavigationTiming API. Use instead: Performance, Navigation timing performance entries

Browser support

DesktopChrome
1–55Not supported
56+Supportedsince Jan 25, 2017
Current: 155
Edge
12–17Not supported
18+Supportedsince Oct 2, 2018
Current: 154
Firefox
1–55Not supported
56+Supportedsince Sep 28, 2017
Current: 157
Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27
MobileChrome Android
18–55Not supported
56+Supportedsince Feb 1, 2017
Current: 155
Firefox Android
4–55Not supported
56+Supportedsince Sep 28, 2017
Current: 157
Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27

How to use

Support is still inconsistent across browsers. Use feature detection and test carefully.

Example

Full syntax and examples are on MDN: navigation.

Feature detection

JS · check before using
if ("PerformanceTiming" in globalThis) {
  // PerformanceTiming is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (29). The overall table above shows when the whole feature works.

Show 9 more