Skip to content

Commit

Permalink
removed fid
Browse files Browse the repository at this point in the history
  • Loading branch information
claud-io committed Aug 19, 2024
1 parent 88e42a5 commit 7d2027a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions www/include/CrUX.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function InsertCruxHTML($fvRunResults, $metric = '')
is_array($pageData['CrUX']) &&
isset($pageData['CrUX']['metrics'])
) {
if (!$cruxStyles) {?>
if (!$cruxStyles) { ?>
<?php
$cruxStyles = true;
}
Expand All @@ -62,7 +62,6 @@ function InsertCruxHTML($fvRunResults, $metric = '')
InsertCruxMetricHTML($pageData, 'chromeUserTiming.firstContentfulPaint', 'first_contentful_paint', 'First Contentful Paint', 'FCP');
InsertCruxMetricHTML($pageData, 'chromeUserTiming.LargestContentfulPaint', 'largest_contentful_paint', 'Largest Contentful Paint', 'LCP');
InsertCruxMetricHTML($pageData, 'chromeUserTiming.CumulativeLayoutShift', 'cumulative_layout_shift', 'Cumulative Layout Shift', 'CLS');
InsertCruxMetricHTML($pageData, null, 'first_input_delay', 'First Input Delay', 'FID');
InsertCruxMetricHTML($pageData, 'TTFB', 'experimental_time_to_first_byte', 'Time to First Byte', 'TTFB');
InsertCruxMetricHTML($pageData, null, 'interaction_to_next_paint', 'Interaction to Next Paint', 'INP');
} elseif ($metric == 'fcp') {
Expand Down Expand Up @@ -222,4 +221,4 @@ function GetCruxValuePosition($value, $maxVal, $histogram, $width, &$color)
$color = '#ff4e42';
}
return intval($pos);
}
}

0 comments on commit 7d2027a

Please sign in to comment.