@fluidframework/container-loader 2.0.0-internal.4.4.3 → 2.0.0-internal.4.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/container.js CHANGED
@@ -277,8 +277,8 @@ class Container extends telemetry_utils_1.EventEmitterWithErrorHandling {
277
277
  document !== null &&
278
278
  typeof document.addEventListener === "function" &&
279
279
  document.addEventListener !== null;
280
- // keep track of last time page was visible for telemetry
281
- if (isDomAvailable) {
280
+ // keep track of last time page was visible for telemetry (on interactive clients only)
281
+ if (isDomAvailable && interactive) {
282
282
  this.lastVisible = document.hidden ? common_utils_1.performance.now() : undefined;
283
283
  this.visibilityEventHandler = () => {
284
284
  if (document.hidden) {