UMD Web Utilities Library
    Preparing search index...

    Function isLCPGood

    • Check if LCP value is within good threshold

      Parameters

      • lcpSeconds: number

        LCP value in seconds

      Returns boolean

      true if LCP is good (<=2.5s)

      const lcpSeconds = 2.1;
      if (isLCPGood(lcpSeconds)) {
      console.log('LCP is within acceptable range');
      }