Closed rexsuit closed 6 years ago
Is their console errors? Can you provide a link to source of your site? Any reason to suspect this problem is related to Gatsby?
Thanks a lot for your reply Kyle!
Nope, no console errors unfortunately. Considering the page is only 39kb (when inspecting network tab) I doubt that GSAP is getting loaded at all.
The page i linked above (https://clever-wiles-b95d3a.netlify.com/other-page) is literally the page I was practicing with GSAP on. I'm not sure if it's gatsby per se, maybe it's more of a general SSR thing. However, it does work properly while I have it in gatsby develop
mode
Here is the github link to the relevant page: https://github.com/orshick/chancelor/blob/master/src/pages/other-page.js
How are you loading GSAP Orshick? Where are you putting the Githubissues.
Summary
Using GSAP on my gatsby site works fine during development, but does not work in the built version. I'm guessing this has something to do with me using it only in componentDidMount, and therefore being ignored from the server rendering or something of that sort. Either way, I'm not sure how I'd work around this. Any ideas would be greatly appreciated!
Relevant information
Using the latest GSAP, and the latest gatsby (v2). Using gatsby-starter-blog Win10
Environment (if relevant)
Ran gatsby info --clipboard but it did not work, despite being on the latest gatsby-cli
File contents (if changed)
gatsby-config.js
:package.json
:gatsby-node.js
:gatsby-browser.js
: N/Agatsby-ssr.js
: N/A