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 716e632
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',
window.performance.timeOrigin || window.performance.timing.navigationStart
);
}

/**
Expand Down

0 comments on commit 716e632

Please sign in to comment.