const restartTime =
performance?.getEntriesByType?.("navigation")[0]?.criticalCHRestart;
if (restartTime > 0) {
console.log("Time at which connection restart happened:", restartTime);
}PerformanceNavigationTiming: criticalCHRestart property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.