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:
- <div class = «hide»> <img src = «images / my_animation.gif» </ div>
CSS rule that hides the block with a class hide :
- . Hide {
- ; display: none;
- }
Podsmotreno here















Thurs, October 9th, 2008
CSS-Tricks