isaacs / blog.izs.me

eleventy app that powers my blog
https://blog.izs.me
Other
14 stars 13 forks source link

move css out of <Helmet> to avoid FOUC #18

Closed isaacs closed 5 years ago

isaacs commented 5 years ago

Putting styles in a style tag inside of <Helmet> means that it's not included in the SSR.

Either need to add a gatsby-ssr.js that does this, or just figure out how to link a stylesheet the old fashioned way, or use component CSS like react intended.

isaacs commented 5 years ago

It turns out that it's stupidly easy, and I was just making it way more complicated than it needed to be.