Browsing the blog archives for September, 2009

Image preloading with CSS2

Using CSS2′s :after notation, we can preload images without unnecessary markup or JavaScript. Example: #wrapper:after { content:url(/images/black-dropdown-bottom.png); display:none; } This will preload the image set as the “content” after the element, and using display:none we don’t have to worry about it being rendered. Just a nifty trick to preload images without JavaScript or duplicating image [...]

No Comments
September 21, 2009 in Development