diff --git a/packages/loader/container-loader/src/container.ts b/packages/loader/container-loader/src/container.ts index b4e478f9f766..185a319696eb 100644 --- a/packages/loader/container-loader/src/container.ts +++ b/packages/loader/container-loader/src/container.ts @@ -845,8 +845,8 @@ export class Container document !== null && typeof document.addEventListener === "function" && document.addEventListener !== null; - // keep track of last time page was visible for telemetry - if (isDomAvailable) { + // keep track of last time page was visible for telemetry (on interactive clients only) + if (isDomAvailable && interactive) { this.lastVisible = document.hidden ? performance.now() : undefined; this.visibilityEventHandler = () => { if (document.hidden) {