$(document)ready() is triggered even if all graphics are not loaded so that height() or width() method cold return incorrect result. In this situation, $(window).load() is a better choice.
$(document)ready() is triggered even if all graphics are not loaded so that height() or width() method cold return incorrect result. In this situation, $(window).load() is a better choice.