Table of Contents

About

First Contentful Paint (FCP) 1):

It captures the very beginning of the loading experience.

The FCP will occurs you when a splash screen or a loading indicator is seen by the user (The icon while loading is known as a wiki/Throbber)

However, the page is still not usable for the user, the Largest Contentful Paint metrics captures the page usability.

How to measure it ?

With:

Example:

  • All results are reported to the analyticsTracker callback
new Perfume({
  analyticsTracker: options => {
    const { metricName, data, eventProperties, navigatorInformation, vitalsScore, } = options;
    if(metricName !== 'fcp'){
      return;
    }  
    console.log('firstContentfulPaint duration:'+data);
  },
});