Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The :-moz-loading CSS pseudo-class is a Mozilla extension that matches elements that can't be displayed because they have not started loading, such as images that haven't started to arrive yet. Note that images that are in the process of loading are not matched by this pseudo-class.

Note: This selector is mainly intended to be used by theme developers.


:-moz-loading {
  /* ... */


Setting a background for images that are loading

:-moz-loading {
  background-color: #aaa;
  background-image: url(loading-animation.gif) center no-repeat;


Not part of any standard.

See also