Avoid flicker when loading content