We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a21917 commit 4d89195Copy full SHA for 4d89195
_layouts/default.html
@@ -102,4 +102,4 @@
102
//# sourceURL=sw.inline.js
103
</script>
104
105
- <script src=/js/obs.speedcurve.js?v=0001 type=module></script>
+ <script src=/js/obs.speedcurve.js?v=0002 type=module></script>
js/obs.speedcurve.js
@@ -64,4 +64,13 @@
64
LUX.addData('fromPrerender', false);
65
}
66
67
+ // Time to Last Byte (TTLB)
68
+ if (navigation.responseEnd && navigation.startTime >= 0) {
69
+ const ttlb = Math.round(navigation.responseEnd - navigation.startTime);
70
+ if (Number.isFinite(ttlb) && ttlb >= 0) {
71
+ LUX.addData('TTLB', ttlb);
72
+ }
73
74
+
75
76
})();
0 commit comments