I am trying to hide a div before the page loads. I have added the css of display: none;
I am overlaying the div with another one. But there is a small flash of the old div. How can I over come this, so far I have tried:
JS
$(document).ready(function () {
$('.div').hide();
});
CSS
.div {
display: none;
}
The div is part of some other html on the server and I can't add another class to it.