chrismwilliams / astro-theme-cactus

A simple Astro theme. Use it to create your blog or website.
https://astro-cactus.chriswilliams.dev/
MIT License
866 stars 132 forks source link

In dark mode, there is a momentary white screen when switching pages #263

Closed LamiaLoveless closed 3 months ago

LamiaLoveless commented 3 months ago

This doesn't happen with cloudflare's default subdomains, but the custom domains do

chrismwilliams commented 3 months ago

I'm not quite sure what you mean by bundled domains, but my guess is that the issue is with your build and/or host. The js required for dark mode is intentionally setup in the theme to be render-blocking to prevent FOUC. My guess is that this is being modified in build/post-build.

Just make sure your build is what you expect and may require manual checking, I do have an example of this theme on cloudflare here to compare against.