jQuery calculate $(document).height() too late?
<p>Ok, so I'm doing this page: <a href="http://www.muzykakoncerty.pl/" rel="nofollow">http://www.muzykakoncerty.pl/</a> . I must dynamic calculate few css attributes to get good effect. The problem is, that if i use $(document).height() then first time before refresh (every browser?!) elements using $(document).height() are bad-calculated. Check-out yourself. On main page issue is right-centered text "baw się ..." and on another pages is main photo on left side. Just try to refresh page, and u will see difference</p>

<p>any ideas what cause the problem?</p>

<p>EDIT:
OK! I know what is issue. Probably browser is loading and getting too late graphics and theirs size (width and height). 
New question is: How to check if graphics are loaded?</p>

<p>EDIT2:
Here is video thats showing the issue:
<a href="http://www.youtube.com/watch?v=8GCc_S7SdtI" rel="nofollow">http://www.youtube.com/watch?v=8GCc_S7SdtI</a></p>
