We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d69c9d commit c45e33dCopy full SHA for c45e33d
src/performance/performance.service.ts
@@ -6,7 +6,7 @@ const IS_STABLE_START_MARK = '_isStableStart';
6
const IS_STABLE_END_MARK = '_isStableEnd';
7
8
function markStarts() {
9
- if (typeof(window) !== 'undefined' && window.performance) {
+ if (typeof(window) !== 'undefined' && window.performance && window.performance.mark) {
10
window.performance.mark(IS_STABLE_START_MARK);
11
return true;
12
} else {
@@ -22,7 +22,7 @@ export class PerformanceMonitoringService implements OnDestroy {
22
private disposable: Subscription|undefined;
23
24
constructor(appRef: ApplicationRef) {
25
- if (started) {
+ if (started && window.performance.mark) {
26
this.disposable = appRef.isStable.pipe(
27
first(it => it),
28
tap(() => {
0 commit comments