We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae3eba commit 4062536Copy full SHA for 4062536
js/obs.speedcurve.js
@@ -34,4 +34,19 @@
34
window.LUX.addData(key, obs[key]);
35
}
36
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
48
49
50
+ LUX.addData('Protocol', protocol.description);
51
52
})();
0 commit comments