I attach capty to images, I do
$(document).ready(function(){
$('.shop_banner img').capty({height:150});
});
In chrome when I debug capty code alert($this.height()) is zero so wrapper hide image. I know some browser wants image to be fully loaded but if I use ready doesn’t mean that it executes after page is fully loaded? What can I do?
No, load and ready aren’t the same thing.
You can do
ready calls your function as soon as the DOM is ready, which doesn’t mean images are loaded.
From the documentation :