Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
Add new metrics (LCP and CLS) to CrUX report
Browse files Browse the repository at this point in the history
  • Loading branch information
herablog committed Apr 21, 2020
1 parent 699dbbf commit 40e4004
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions chrome-ux-report/src/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,78 @@ crux.Schema = [
isReaggregatable: true
}
},
{
name: 'fast_lcp',
label: 'Fast LCP',
description: 'The percent of Fast Largest Contentful Paint.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'avg_lcp',
label: 'Average LCP',
description: 'The percent of Average Largest Contentful Paint.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'slow_lcp',
label: 'Slow LCP',
description: 'The percent of Slow Largest Contentful Paint.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'small_cls',
label: 'Small CLS',
description: 'The percent of Small Cumulative Layout Shift.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'medium_cls',
label: 'Medium CLS',
description: 'The percent of Medium Cumulative Layout Shift.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'large_cls',
label: 'Large CLS',
description: 'The percent of Large Cumulative Layout Shift.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'desktopDensity',
label: 'Desktop',
Expand Down

0 comments on commit 40e4004

Please sign in to comment.