V
V
Victoria2021-05-24 16:06:22
Google Chrome
Victoria, 2021-05-24 16:06:22

How to fix error in Chome console:: chrome.loadTimes() is deprecated?

Error in console: Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768 .
and code

// send spdy info for current page
chrome.runtime.sendMessage({
  spdy: loadTimes.wasFetchedViaSpdy,
  info: loadTimes.npnNegotiatedProtocol || loadTimes.connectionInfo
});

chrome.runtime.onMessage.addListener(function (res, sender, sendResponse) {
  chrome.runtime.sendMessage({
    spdy: loadTimes.wasFetchedViaSpdy,
    info: loadTimes.npnNegotiatedProtocol || loadTimes.connectionInfo
  });
});

Found the following https://github.com/justjavac/ChromeSnifferPlus/iss... and https://developers.google.com/web/updates/2017/12/... BUT none of the options helped in solving the error . Help please can anyone come across. I have Chrome v 90.0.4430.212

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question