Fix the FoUC and show loading spinner