Prevent flickering between page navigations.