Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatsby-plugin-pace

serializedowen15MIT1.0.0

Binding for using pace.js in Gatsby. An automatic page load progress visualizer.

gatsby-plugin, gatsby, pace.js

readme

gatsby-plugin-pace

pace.js binding for gatsby sites. support all options pace.js support.

with additional options:

  • theme: (optional) css theme to use with pace.js, default to minimal. gatsby-plugin-pace bundled themes includes:
    • minimal
    • center-radar
    • center-simple
    • barber-shop
    • flash
    • loading-bar
    • corner-indicator
  • color: main color pace.js will use
  • cdn: (optional), if a cdn link to pace.js is specified, plugin will load pace.js from cdn instead of package.

in gatsby-config.js

    {
      resolve: 'gatsby-plugin-pace',
      options: { theme: 'minimal', color: 'white', cdn: 'https://cdn.bootcdn.net/ajax/libs/pace/1.0.2/pace.min.js' }
    },