Skip to content

Commit

Permalink
performance: emit timeOrigin w/ polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Jan 24, 2020
1 parent b8796c2 commit 5465fbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/service/performance-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ export class Performance {
whenDocumentComplete(win.document).then(() => this.onload_());
this.registerPerformanceObserver_();
this.registerFirstInputDelayPolyfillListener_();

this.tick(
'timeOrigin',
win.performance.timeOrigin || win.performance.timing.navigationStart
);
}

/**
Expand Down

0 comments on commit 5465fbd

Please sign in to comment.