I'm trying to get the height of an image with jquery
$(document).ready(function() {
alert($('#image').height());
})
Very basic. However I'm confused.
If I press F5 I get the following result:
Firefox: 383px
IE 8: 30px
Chrome: 0px
If I go to the page via a link:
Firefox: 383px
IE 8: 383px
Chrome: 383px
383 is obviously the correct value. But why do I get the wrong value upon refresh?