Skip to content

Commit

Permalink
docs: app
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Oct 21, 2021
1 parent 44f2e1b commit be4cf2d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions docs/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ <h3 class="box-title" id="/quick-start/">
>// These metrics activate on a set delay or when the tab changes
visibility</b
><br />
Largest Contentful Paint Final: <b>{{ lcpFinal }} ms</b><br />
Cumulative Layout Shift Final: <b>{{ clsFinal }}</b
><br />
Total Blocking Time 5S: <b>{{ tbt5s }} ms</b><br />
Expand Down Expand Up @@ -85,9 +84,6 @@ <h3 class="box-title" id="/quick-start/">
<span class="red">case</span> 'lcp'<span class="red">:</span>
myAnalyticsTool.<span class="violet">track</span>('largestContentfulPaint', {{'{'}} duration: data {{'}'}});
<span class="red">break</span>;
<span class="red">case</span> 'lcpFinal'<span class="red">:</span>
myAnalyticsTool.<span class="violet">track</span>('largestContentfulPaintFinal', {{'{'}} duration: data {{'}'}});
<span class="red">break</span>;
<span class="red">case</span> 'cls'<span class="red">:</span>
myAnalyticsTool.<span class="violet">track</span>('cumulativeLayoutShift', {{'{'}} duration: data {{'}'}});
<span class="red">break</span>;
Expand Down Expand Up @@ -235,7 +231,6 @@ <h3 class="box-title" id="/largest-contentful-paint/">
</p>
<p class="box-demo">
<b>Largest Contentful Paint:</b> {{ lcp }} ms<br />
<b>Largest Contentful Paint Final</b>: {{ lcpFinal }} ms
</p>
</div>

Expand Down
6 changes: 0 additions & 6 deletions docs/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
fp,
fcp,
lcp,
lcpFinal,
fid,
cls,
clsFinal,
Expand Down Expand Up @@ -49,7 +48,6 @@ export class AppComponent implements AfterViewInit {
fcp: number;
fid: number;
lcp: number;
lcpFinal: number;
cls: number;
clsFinal: number;
tbt: number;
Expand Down Expand Up @@ -104,10 +102,6 @@ export class AppComponent implements AfterViewInit {
this.lcp = result;
this.ref.detectChanges();
});
lcpFinal.subscribe(result => {
this.lcpFinal = result;
this.ref.detectChanges();
});
fid.subscribe(result => {
this.fid = result;
this.ref.detectChanges();
Expand Down
5 changes: 0 additions & 5 deletions docs/src/app/perfume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const dataConsumption = new BehaviorSubject({});
export const fp = new BehaviorSubject(0);
export const fcp = new BehaviorSubject(0);
export const lcp = new BehaviorSubject(0);
export const lcpFinal = new BehaviorSubject(0);
export const fid = new BehaviorSubject(0);
export const cls = new BehaviorSubject(0);
export const clsFinal = new BehaviorSubject(0);
Expand Down Expand Up @@ -51,7 +50,6 @@ export function analyticsTracker(options) {
'fp',
'fcp',
'lcp',
'lcpFinal',
'fid',
'fidVitals',
'cls',
Expand Down Expand Up @@ -95,9 +93,6 @@ export function analyticsTracker(options) {
case 'lcp':
lcp.next(data);
break;
case 'lcpFinal':
lcpFinal.next(data);
break;
case 'fid':
fid.next(data);
break;
Expand Down

0 comments on commit be4cf2d

Please sign in to comment.