-
There's this element that is inserted in the It seems to be added in the code from .cache/loading-indicator/, in the props In the file .cache/loading-indicator/indicator.js there's this code: if (!window.___gatsbyDidShowLoadingIndicatorBefore) {
// not ideal to this in render function, but that's just console info
debugLog(
`A loading indicator is displayed in-browser whenever content is being requested upon navigation (Query On Demand).\n\nYou can disable the loading indicator for your current session by visiting ${window.location.origin}/___loading-indicator/disable`
)
window.___gatsbyDidShowLoadingIndicatorBefore = true
} Visiting Either way, building the project for production includes this portal code, which I don't use nor intend to use in the future for this particular project. I'm aware that you can mess around with The project uses I found this plugin: gatsby-plugin-portal, but it doesn't seem to be the same thing. I'm using gatsby@next because of gatsby-plugin-image-beta: #27950 Dependencies (there is no devDependencies in package.json): {
"dependencies": {
"gatsby": "^2.31.0-next.1",
"gatsby-plugin-image": "^0.6.0-next.1",
"gatsby-plugin-manifest": "^2.10.0",
"gatsby-plugin-postcss": "^3.5.0",
"gatsby-plugin-preact": "^4.5.0",
"gatsby-plugin-react-helmet": "^3.8.0",
"gatsby-plugin-sharp": "^2.13.0-next.1",
"gatsby-plugin-sitemap": "^2.10.0",
"gatsby-transformer-sharp": "^2.11.0-next.1",
"postcss": "^8.2.4",
"preact": "^10.5.10",
"preact-render-to-string": "^5.1.12",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^6.1.0"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi! Are you sure it's on your live website? |
Beta Was this translation helpful? Give feedback.
-
The loading indicator doesn't dismiss automatically on develop for me, so I put |
Beta Was this translation helpful? Give feedback.
-
Hello? I wanted to solve the red text on the console window. Also, as you want, I don't want to go to http://localhost:8000/___ loading-indicator/disable to disable each time either. It didn't even appear in Google's search results. I happened to see it in the terminal running it and found the following phrase.
So I edited flags: {
DEV_SSR: false,
}, then I haven't deployed and confirmed it yet, but I wanted to solve it on the development server. |
Beta Was this translation helpful? Give feedback.
The loading indicator doesn't dismiss automatically on develop for me, so I put
GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR=false
indevelop
script. Now I don't have to go to http://localhost:8000/___loading-indicator/disable to disable it every time.