diff --git a/public/app/app.ts b/public/app/app.ts index dbb31244744..12333bc829a 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -175,7 +175,7 @@ export class GrafanaApp { ttiPolyfill.getFirstConsistentlyInteractive().then((tti: any) => { // Collecting paint metrics first - const paintMetrics = performance.getEntriesByType('paint'); + const paintMetrics = performance && performance.getEntriesByType ? performance.getEntriesByType('paint') : []; for (const metric of paintMetrics) { reportPerformance(metric.name, Math.round(metric.startTime + metric.duration));