[jQuery] Resizing Images in jQuery

[jQuery] Resizing Images in jQuery


I am trying to display images on the page via ajax, but they are slow
loading. What I'd like to do is show a 'loading' image while the
image is loading, and then load the image.
The problem is, all of the images are different sizes, and so I can't
set the 'loading' image to the exact size of whatever image is
loading. Once I load an image, the image stretches overtop of the
content below it or to the side. Is there a way with jQuery to
dynamically resize everything around it so that the image will fit
into its space?