Optimizes assets and behaviors of the Gatsby framework for a notable increate in Google's lightouse score.
npm install @vtex/gatsby-plugin-performanceOptimizes assets and behaviors of the Gatsby framework for a notable increate in Google's lightouse score.
Some optmizations included are:
- Reduce Gatsby's framework induced TBT. Apply this PR
- Reduce Gatsby's framework bundle sizes by using Server Routing (match-paths.json). Addresses this issue
```
yarn add @vtex/gatsby-plugin-performance
js
// In your gatsby-config.js
module.exports = {
plugins: [
// other plugins ...
{
resolve: @vtex/gatsby-plugin-performance
options: {
enableServerRouting: true,
enableNonBlockingStart: true,
}
}
],
}
`When do I use this plugin?
This plugin is usefull when you want that extra points on Google's Lighthouse and is hosting in a redirect capable server, like
Netlify or the @vtex/gatsby-plugin-nginx`Feel free to open issues in our repo. Also, there is a general contributing guidelines in there