I have a function I created that runs initially on window load to do some processing to images (height width etc.) - For the sake of this question i'll call that function "run_imgprocess()"
My question:
When appending data to the page with a click function (or ajax etc.) I need to call the "run_imgprocess()" function on the images once they are loaded but that is the tricky part.
Without using something like the "imagesloaded" plugin, what are my options?
My last attempt was this:
$(".appendedclass img").load(function(){
run_imgprocess();
});
However this is not reliable once you use more than a few large images in your click append.
Thank you in advance!
EDIT :
Added Fiddle - http://jsfiddle.net/aECag/1/
IMPOTANT : When you cache the images, they will render properly on re-run. You have to clear your browser cache completely then try.