Spinner via css while image loading

very simple but neat idea by martijn dashorst:

<img src="http://example.com/images/someimage.jpg" style="background-image:url('style/spinner.gif');" />

Assuming the local machine is faster than the external server, the
spinner should be visible while the external image loads.

Martijn

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>