I have something like this:
<div id="content" style="visibility: hidden;">
<!-- 500 lines of HTML --->
</div>
This div contain divs that are shown via Javascript. The problem is that it makes my site's height too big even if nothing is shown.
I know I could just add the divs to be generated in the Javascript file, but I wonder if there is a CSS solution, since I like to have the "skeleton" in the HTML instead of the Javascript.