apply fouc prevention.