Skip to content

Restoring Nginx Config to Fix Nav Flash Bug

I noticed a strange Flash of unstyled content where the background nav bar briefly appeared on chapter pages before styles loaded. At first I suspected template changes, CSS order, or even theme limitations. After hours of chasing, I realized the culprit was server-side: I had added temporary Nginx overrides (`gzip off`, `proxy_buffering off`, `chunked_transfer_encoding on`) while troubleshooting a CSS cache issue. Those settings streamed HTML before CSS, exposing unstyled elements. Restoring my original Nginx config immediately resolved the issue. Lesson learned: always roll back temporary server tweaks once testing is complete.

Published incompleted