Check if LCP value is within good threshold
LCP value in seconds
true if LCP is good (<=2.5s)
const lcpSeconds = 2.1;if (isLCPGood(lcpSeconds)) { console.log('LCP is within acceptable range');} Copy
const lcpSeconds = 2.1;if (isLCPGood(lcpSeconds)) { console.log('LCP is within acceptable range');}
Check if LCP value is within good threshold