White flashbang for millisecond before page load

So I'm noticing an issue where when swapping between pages on my site (/about, /home, etc.) it'll momentarily flash white before the styles are loaded. I'm using Astro and Tailwind, and even sticking a
<style>
html {
background-color: #040A0A;
}
</style>
<style>
html {
background-color: #040A0A;
}
</style>
in the head of the page resolves the issue. Is there a way to prevent this or am I SOL?
1 Reply
General Mudkipp
General MudkippOP2y ago
Not sure if it's a browser thing though, on Firefox the issue is pretty evident but on Chrome it's not present at all
Want results from more Discord servers?
Add your server