In jQuery when you do this:
$(function() { alert(\"DOM is loaded, but images not necessarily all loaded\"); });
It waits for the DOM to
None of the answers so far have given what seems to be the simplest solution.
$('#image_id').load( function () { //code here });