I have some JQuery code that shows or hides a div.
$(\"div#extraControls\").show(); // OR .hide()
I initially want the div to be not visi
With CSS3 you can actually hide content until a page loads by taking advantage of the :only-child selector.
Here is a demonstration of how to do this. The basic idea is that CSS while loading will add a single node to the DOM while loading that node and its child nodes. Further, once a second child is added to the given parent node the :only-child selector rule is broken. We match against this selector and set display: none to hide the given node.
Hide content until loaded with CSS