How to display loading image while actual image is downloading [duplicate]

Just add a background image to all images using css:

img {
  background: url('loading.gif') no-repeat;
}

Leave a Comment