Here is my function
var img = new Image();
$(img).load(function () {
$(this).css('display','none');
$(el).removeClass('loading').append(this);
$(this).fadeIn();
}).error(function () {
$(el).remove();
}).attr('src', srcImage);
I need to get the width of the loaded image or srcImage
I can do this with
var w = $('.parent_element').find('img').css('width');
but it needs to be done after srcImage
is completely loaded