Skip to content

Commit

Permalink
Ensure TTI is at least TTVR
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Oct 4, 2017
1 parent 5303d32 commit 765af07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perfbar.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,9 @@ function initEmbeddedBoomerangPlugins() {
// of this idle period
if (idleIntervals >= TIME_TO_INTERACTIVE_IDLE_INTERVALS) {
tti = startTime + ((j - TIME_TO_INTERACTIVE_IDLE_INTERVALS) * COLLECTION_INTERVAL);

// ensure we don't set TTI before TTVR
tti = Math.max(tti, visuallyReady);
break;
}
}
Expand Down

0 comments on commit 765af07

Please sign in to comment.