From 76c5c4454cfadb100e1117f971be70c82077ab5b Mon Sep 17 00:00:00 2001 From: Kajari Ghosh Date: Thu, 3 Aug 2023 13:28:30 -0700 Subject: [PATCH] Port 16649 to patch release 4.4.4 (#16701) Port [16649](https://github.com/microsoft/FluidFramework/pull/16649/files) to patch release 4.4.4. --- packages/loader/container-loader/src/container.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {