gatsby-plugin-nprogress

JavaScript
// Install
npm install --save gatsby-plugin-nprogress

// Yarn
yarn add gatsby-plugin-nprogress

// How to use
// In your gatsby-config.js

plugins: [
  {
    resolve: `gatsby-plugin-nprogress`,
    options: {
      // Setting a color is optional.
      color: `tomato`,
      // Disable the loading spinner.
      showSpinner: false,
    },
  },
]
Source

Also in JavaScript: