Answer the question
In order to leave comments, you need to log in
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
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question