diff --git a/dotcom-rendering/src/web/browser/islands/doHydration.ts b/dotcom-rendering/src/web/browser/islands/doHydration.ts index 5e26a2e5e70..ed0165e6c9a 100644 --- a/dotcom-rendering/src/web/browser/islands/doHydration.ts +++ b/dotcom-rendering/src/web/browser/islands/doHydration.ts @@ -48,6 +48,8 @@ export const doHydration = ( return { clientOnly, timeTaken }; }) .then(({ clientOnly, timeTaken }) => { + if (!('getEntriesByType' in window.performance)) return; + // Log performance info const { duration: download = -1 } = window.performance