Skip to content

Commit

Permalink
Port 16649 to patch release 4.4.4 (#16701)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshkaj authored Aug 3, 2023
1 parent b0dd0e8 commit 76c5c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loader/container-loader/src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 76c5c44

Please sign in to comment.