We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8fe4c4 commit bb38169Copy full SHA for bb38169
browserscripts/timings/serverTimings.js
@@ -1,12 +1,14 @@
1
(function () {
2
let t = window.performance.getEntriesByType('navigation')[0];
3
const serverTimings = [];
4
- for (let timing of t.serverTiming) {
5
- serverTimings.push({
6
- name: timing.name,
7
- duration: timing.duration,
8
- description: timing.description
9
- });
+ if (t.serverTiming) {
+ for (let timing of t.serverTiming) {
+ serverTimings.push({
+ name: timing.name,
+ duration: timing.duration,
+ description: timing.description
10
+ });
11
+ }
12
}
13
return serverTimings;
14
})();
0 commit comments