I am developing a site based all around photos. Some areas of this site require calculations based on image dimensions in order to work correctly. What i have found is that
Try this instead:
$(window).load(function() { alert("images are loaded!"); });
See this link for a comparison of $(document).ready() and $(window).load()
$(document).ready()
$(window).load()
http://4loc.wordpress.com/2009/04/28/documentready-vs-windowload/