Fast podzagruzka pictures

Thurs, October 9th, 2008

CSS-Tricks

It happens that the image should appear instantly, such as load indicator. But because of the slow connection. That is, the image should be cached by the browser when the initial page load.

In fact, it's simple:

  1. <div class = «hide»> <img src = «images / my_animation.gif» </ div>

CSS rule that hides the block with a class hide :

  1. . Hide {
  2. ; display: none;
  3. }

Podsmotreno here

See also:

,

Comments are closed.