Reduce flicker on page load