MaggieAppleton / maggieappleton.com

⚠️ Now retired. My previous, poorly constructed digital garden built with Gatsby and MDX. Updated garden here: https://github.com/MaggieAppleton/maggieappleton.com-V2
https://maggieappleton.com
Other
161 stars 24 forks source link

Rendering issues on MDX posts #115

Closed MaggieAppleton closed 3 years ago

MaggieAppleton commented 3 years ago

All of my MDX posts have weird rendering bugs when someone first views the page. The CSS doesn't load correctly, and any JavaScript libraries like GreenSock fail to execute. If you refresh the page, everything is fixed. It only happens on first load.

A full explanation in a loom video: https://www.loom.com/share/ce9991abb8ef40a6b641a3299e8c5022

I'm speculating it might have something to do with service workers or caching, but don't know how to debug it. The issues happens in all .mdx posts.