fix flashing unstyled content