I need to apply this to images that are selected by jQuery selector for example $(\"img\"), should apply this to all images in page.
There is a tutorial at
http://jqueryfordesigners.com/image-loading/
that you would want to supplement with an each() loop in $("img")
I guess you can do like this.
create an initial layout with the following:
Image that you are loading with visibility:hidden;
div with loading message.
jQuery's domready show the image and hide the div.
Is this okay?
jquery loading image while elements loads https://stackoverflow.com/.../adding-a-loading-image-to-dynamic-images-comming-from-flickr