When using the HTML IMG tags with Internet Explorer (tested on IE7), the page is not displayed until the images have been downloaded. Loading images using CSS background-image ensures the page is displayed even before the image is loaded.
See Colnect's countries page which contains many flag images in it using this tip.
With FireFox the page is displayed but this modification will make CSS background images load later than normal IMG images.
How to do it?
Simply replace:
<img src="image.jpg"
width="100" height="100" />
with
<div style="height: 100px; width: 100px;
background: url(image.jpg) no-repeat center center;">
</div>
No comments:
Post a Comment
We welcome comments to our blog post but MANUALLY verify each comment. Spam comments will be reported. When asking for an answer on anything Colnect related, please use Colnect's forums. Thanks and happy Colnecting :)