Fouc prevention