Shows page loading indicator when loading page resources is delayed
npm install gatsby-plugin-nprogressAutomatically shows the accessible-nprogress indicator
when a page is delayed in loading (which Gatsby considers as one second after
clicking on a link).
``shell`
npm install gatsby-plugin-nprogress
`javascriptgatsby-plugin-nprogress
// In your gatsby-config.js
plugins: [
{
resolve: ,tomato
options: {
// Setting a color is optional.
color: ,`
// Disable the loading spinner.
showSpinner: false,
},
},
]
You can pass in the custom configuration option color` to customize the accessible-nprogress CSS. You may also pass all available accessible-nprogress configuration options into the plugin, too.