Getting the proper document height with Jquery
<p>Goodevening/night </p>

<p>A small yet annoying jquery problem. I would like to get the height of my document. To do that i use the following code: </p>

<pre><code>$docHeight = $(document).height();
</code></pre>

<p>When i visit my page in a normal way (by clicking at a href at some other page) I get the correct height of my document. (about 4000px). But when i refresh i get my windowheight (1037px). Any way to avoid/fix this?</p>

<p>Grats,</p>

<p>W.</p>

<p>*<strong><em>Solution</em>*</strong></p>

<p>$(window).load(function({...}); does the trick. My images(so imageheight also) don't get loaded with document.ready, only the tags. window.load loads the entire page with heights etc, which gives me the right height of my doc.</p>
