These standardized APIs are being implemented by multiple browser vendors. As a
result, chrome.loadTimes() is being deprecated in Chrome 64.

The deprecated API

The chrome.loadTimes() function returns a single object containing all of its
loading and network information. For example, the following object is the result
of calling chrome.loadTimes() on www.google.com:

Standardized replacements

You can now find each of the above values using standardized APIs. The following
table matches each value to its standardized API, and the sections below show
code examples of how to get each value in the old API with modern equivalents.

Note: some of the features of the original API were
never implemented or only apply to deprecated features. These are marked "N/A"
in the table above.

The code examples below return equivalent values to those returned by
chrome.loadTimes(). However, for new code these code examples are not
recommended. The reason is chrome.loadTimes() gives times values in epoch
time in seconds whereas new performance APIs
typically report values in milliseconds relative to a page's
time origin, which tends to
be more useful for performance analysis.

Several of the examples also favor Performance Timeline
2 APIs (e.g.
performance.getEntriesByType()) but provide fallbacks for the older
Navigation Timing 1 API as it has
wider browser support. Going forward, Performance Timeline APIs are preferred
and are typically reported with higher precision.