TypeError: Cannot set property 'rel' of null error
kiaramelissa opened this issue · 1 comments
kiaramelissa commented
Perfect perfect perfect script. I love it!!! Except I get this error for some reason on mobile device and not sure how to fix?
If i resize the browser to a smaller size, all is fine. It only shows up when I select a device to test, or when I view on mobile. It leaves the entire screen blank.
Any ideas what could be happening?
Is there a way I can stop it detecting the device and just go by the CSS breakpoints?
main.js:2961 Uncaught (in promise) TypeError: Cannot set property 'rel' of null
at VM425 main.js:2961
at a (VM425 main.js:5127)
at Generator._invoke (VM425 main.js:5109)
at Generator.t.<computed> [as next] (VM425 main.js:5160)
at s (VM425 main.js:2945)
at u (VM425 main.js:2979)
at VM425 main.js:2985
at new Promise (<anonymous>)
at n (VM425 main.js:2975)
at VM425 main.js:2989
kiaramelissa commented
Oh I figured it out minutes after posting! Ignore this, sorry!
I was missing the <link rel="preload" as="style" at the start of the stylesheet! Whoops!
Great script!!