At this point, I'm working on the internal user experience of my site when it loads. I already got things better by making DOM elements hidden while changes are being applied to them, whilst being careful not to modify the adsense DIV box on my site.
All adsense ads on my site are fixed-size ad units.
What I'm considering doing as an attempt to reduce repainting and reflowing is encapsulating my webpage in a DIV and upon javascript execution, hide the entire DIV contents including the adsense ad unit and then showing everything again when javascript execution is finished. The execution time (as reported by webpagetest.org) takes roughly 200ms.
Here's a sample of my proposed page layout:
<html>
<head>
<title>whatever</title>
</head>
<body>
<div ID="wrapper">
some content in here
<!-- javascript code imported from google here -->
more content
</div>
<script>
document.getElementByID("wrapper").style.visibility="hidden";
//post javascript processes that take 200ms here
document.getElementByID("wrapper").style.visibility="visible";
</script>
</body>
</html>
My question is, would blanking out the entire webpage window for 200ms (including blanking the adsense ad unit) violate adsense policies?
By blanking, I mean clearing the contents of the screen.