Replies: 1 comment 3 replies
-
Hi, thanks for using Gatsby! Your browser (no matter if Chrome, Firefox or something else) has some powerful capabilities that can help you debug such issues. You can use them once you open the Developer Tools of those. I'm also assuming that this is the repository for the site: https://github.com/catboxer/outsider-art InvestigationIn my instance I'm using Chrome and opened the Developer Tools with F12. The Network tab will help you understand what takes so long: 2021_08_11_23ea88e9.mp4Once you sort by size you see this giant 3MB JSON file: https://artout.netlify.app/page-data/sq/d/3297910368.json The The ProblemsThe way I understand it you're overfetching data (fetching unnecessary and more data than you actually use). This is the static query: While you're querying for Same goes for the individual pages of the artists: It seems you're also querying DocsThe tutorial you followed (https://github.com/john-smilga/gatsby-v3-tutorial-recipes) does some things differently, specifically it only seems to get the images you actually need. We have some docs about auditing and improving performance. You can give them a read afterwards if you want: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am fairly new to Gatsby and only a year in on coding so perhaps I have something misconfigured but I have no idea how to even start trying to fix this issue.
When I run a performance check it gives me a gray bar for 6408.9ms seconds where it just shows a grey bar. And, then the JSON loads for another 2 seconds. Can you tell me what is causing this delay or what I might try to do to get it to load up before people fall asleep? https://artout.netlify.app
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions