The solution is very simple, but took me about 2 hours and half the hair on my head to find it.
Simply wrap your content with a (redundant) div that has display: none and Bob is your uncle.
<div style="display: none">
<div id="content-div">Some content here</div>
</div>
Voila