CSS Preloading Image

I was looking for a new way to preload images and thanks to CSS Ninja I think I got it.

body:after{
content: url(images/smLinks-facebook-r.png) url(images/smLinks-twitter-r.png);
display:none;
}

Pretty simple but works really well. Depending on the browser you use there might need to be a few tweaks made to it but overall this is what I was looking for.

Best part is that its CSS2 so it works on pretty much every browser.

Enjoy.

By: on Jan 3
Cateogry: Web
Tags: , ,

Contact

We are ready to handle any of your web needs. Use the form below to contact us and we'll get back with you in a timely fashion.

If you would like to setup a meeting, we can come out to your place no matter where you are.

Name*

Email*

Message