Browsing the blog archives for September, 2009
Browsing the blog archives for September, 2009
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 [...]