I am staging a website in progress for a client. The site is built using Gatsby on the Frontend and Sanity on the backend. The site first appears without any styling or assets. However, when you scroll down and click the ‘Get In Touch’ button (which links to /success page) and then return back to the website, everything (images, text, styling, etc.) reads perfectly. I can’t figure out what’s happening.
The site is a single-page application and I’m querying all of the data using GraphQL. I’m making ‘StaticQueries’ for each component(? - no page queries). Could that be it? The website appears perfectly in development and on my local server. I’m stuck trying to troubleshoot.