On my website, I have implemented a fade-in user interface effect that slowly reveals the header, footer, and content divs after they load.
The issue I'm encountering is that during the page's initial load, there is a brief moment where the HTML and CSS are being loaded before the JavaScript controlling the fade-in effect kicks in. Is there a best practice to prevent viewers from seeing this loading stage?