@vtex/gatsby-plugin-performance
TypeScript icon, indicating that this package has built-in type declarations

0.373.50 • Public • Published

gatsby-plugin-performance

Optimizes 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

Install

yarn add @vtex/gatsby-plugin-performance

How to use

// 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

How to contribute

Feel free to open issues in our repo. Also, there is a general contributing guidelines in there

Package Sidebar

Install

npm i @vtex/gatsby-plugin-performance

Weekly Downloads

10

Version

0.373.50

License

MIT

Unpacked Size

261 kB

Total Files

23

Last publish

Collaborators

  • jardelymaris
  • denissilvavtex
  • eduardocesb
  • enzomerca
  • vinhags
  • zaedyvtex
  • filafb
  • bastotec
  • arthurtriis1vtex
  • geraldo.fernandes
  • georgebrindeiro
  • filipewl
  • emersonvtex
  • rodrigo.albuquerque
  • viniciuslouzadavtex
  • npedrosovtex
  • myllena.alves
  • mendescamara
  • mauro.takeda
  • lpolon
  • gianvittorio
  • eduardoformiga
  • vcnovaes
  • dpzvtex
  • vtexlab-user
  • wender
  • natamelo
  • mairatma
  • mayzabel
  • augusto.lazaro
  • rafarubim
  • gustavorosolem
  • arthurepc
  • jeymisson
  • victorhmp
  • lurian
  • arturpimentel
  • anitavincent
  • brunojdo
  • lucasecdb
  • matheusps
  • emersonlaurentino
  • viniagostini
  • lucasaarcoverde
  • lariciamota
  • icazevedo
  • fabits
  • mateuspontes
  • gmantiqueira
  • vitorlgomes
  • rodolfoams
  • policarpo
  • marcelovicentegc
  • maianabt
  • jeffersontuc
  • hiagolcm
  • william.silva