Skip to content

Commit dca6f20

Browse files
committed
Revert "Send HTTP protocol information to SpeedCurve"
This reverts commit 4062536.
1 parent 4062536 commit dca6f20

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

js/obs.speedcurve.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,4 @@
3434
window.LUX.addData(key, obs[key]);
3535
}
3636
}
37-
38-
// Send HTTP Protocol if available via Server-Timing header.
39-
const navEntry = performance.getEntriesByType('navigation')[0];
40-
if (!navEntry || !Array.isArray(navEntry.serverTiming)) {
41-
return;
42-
}
43-
44-
const protocol = navEntry.serverTiming.find(t => t.name === 'protocol');
45-
46-
if (!protocol || !protocol.description) {
47-
return;
48-
}
49-
50-
LUX.addData('Protocol', protocol.description);
51-
5237
})();

0 commit comments

Comments
 (0)