Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

khalid / removed nprogress plugin #2540

Merged
1 commit merged into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import NProgress from 'nprogress'
import { Pushwoosh } from 'web-push-notifications'
import { WrapPagesWithLocaleContext } from './src/components/localization'
import { isProduction, isLive, isLocalHost } from './src/common/websocket/config'
Expand Down Expand Up @@ -112,13 +111,9 @@ export const onInitialClientRender = () => {
document.head.appendChild(jipt)
}
}

NProgress.done()
}

export const onClientEntry = () => {
NProgress.start()

const is_gtm_test_domain = window.location.hostname === gtm_test_domain
const push_woosh = new Pushwoosh()
if (isLive()) {
Expand Down Expand Up @@ -149,12 +144,7 @@ export const onClientEntry = () => {
checkLiveChatRedirection()
}

export const onPreRouteUpdate = () => {
NProgress.start()
}

export const onRouteUpdate = () => {
NProgress.done()
checkDomain()

const dataLayer = window.dataLayer
Expand Down
8 changes: 0 additions & 8 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,6 @@ module.exports = {
},
},
'gatsby-plugin-anchor-links',
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `#85ACB0`,
showSpinner: false,
minimum: 0.4,
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
Expand Down
48 changes: 1 addition & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
"gatsby-plugin-google-tagmanager": "^4.4.0",
"gatsby-plugin-image": "^2.4.0",
"gatsby-plugin-manifest": "^4.4.0",
"gatsby-plugin-nprogress": "^4.4.0",
"gatsby-plugin-page-progress": "^2.2.1",
"gatsby-plugin-preact": "^6.5.0",
"gatsby-plugin-react-helmet": "^5.4.0",
"gatsby-plugin-robots-txt": "^1.6.14",
"gatsby-plugin-sharp": "^4.4.0",
"gatsby-plugin-sitemap": "^5.4.0",
"gatsby-plugin-preact": "^6.5.0",
"gatsby-plugin-svgr": "^3.0.0-beta.0",
"gatsby-plugin-use-query-params": "^1.0.1",
"gatsby-source-filesystem": "^4.4.0",
Expand All @@ -37,7 +36,6 @@
"js-cookie": "^2.2.1",
"lottie-web": "^5.8.1",
"match-sorter": "^6.3.1",
"nprogress": "^0.2.0",
"postcss": "^8.4.5",
"preact": "^10.6.4",
"preact-render-to-string": "^5.1.19",
Expand Down