Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hupe1980/gatsby-plugin-performance-metrics

A Gatsby plugin to measure First (Contentful) Paint (FP/FCP) and First Input Delay (FID)
https://github.com/hupe1980/gatsby-plugin-performance-metrics

first-contentful-paint first-paint gatsby gatsby-plugin google-analytics performance react rum

Last synced: 12 days ago
JSON representation

A Gatsby plugin to measure First (Contentful) Paint (FP/FCP) and First Input Delay (FID)

Awesome Lists containing this project

README

        

# gatsby-plugin-performance-metrics

> A [Gatsby](https://github.com/gatsbyjs/gatsby) plugin to measure First (Contentful) Paint (FP/FCP) and First Input Delay (FID)

## Install

`npm install --save gatsby-plugin-performance-metrics`

## How to use

Edit `gatsby-config.js`

```javascript
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-performance-metrics`,
options: {
//firstPaint: false,
//firstContentfulPaint: true,
//firstInputDelay: true,
//useLogging: true,
//useGoogleAnalytics: false
}
}
]
};
```