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

Add new metrics (LCP and CLS) to CrUX report #335

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions chrome-ux-report/src/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,82 @@ crux.Schema = [
isReaggregatable: true
}
},
{
name: 'fast_lcp',
label: 'Fast LCP',
description:
'The percent of Largest Contentful Paint experiences < 2.5 seconds.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'avg_lcp',
label: 'Average LCP',
description:
'The percent of Largest Contentful Paint experiences >= 2.5 seconds and < 4 seconds.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'slow_lcp',
label: 'Slow LCP',
description:
'The percent of Largest Contentful Paint experiences >= 4 seconds.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'small_cls',
label: 'Small CLS',
description: 'The percent of Cumulative Layout Shift experiences < 0.1.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'medium_cls',
label: 'Medium CLS',
description:
'The percent of Cumulative Layout Shift experiences >= 0.1 and < 0.25.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'large_cls',
label: 'Large CLS',
description: 'The percent of Cumulative Layout Shift experiences >= 0.25.',
dataType: 'NUMBER',
defaultAggregationType: 'SUM',
semantics: {
conceptType: 'METRIC',
semanticType: 'PERCENT',
isReaggregatable: true
}
},
{
name: 'desktopDensity',
label: 'Desktop',
Expand Down