06-24-2016, 06:10 AM
(This post was last modified: 06-24-2016, 09:02 AM by ivantcholakov.
Edit Reason: a typo
)
I think, before measuring the height the image has to be loaded first for sure. This does not happen on document.ready event. See https://github.com/desandro/imagesloaded