Better Image Caching with CSS

“These caching techniques have evolved in terms of effectiveness and accuracy, but may be improved further to allow for greater cross-browser functionality. In this post, I share a “CSS-only” preloading method that works better under a broader set of conditions.

Previous image-preloading techniques target all browsers, devices, and media types. Unfortunately, certain browsers do not load images that are hidden directly (via the element) or indirectly (e.g., via the parent element) using either display:none; or visibility:hidden;. Further problematic is the potential unintentional display of images on pages when presented via specifically designed print stylesheet.”

From Perishable Press. Aside from the annoying black background with too dark text, this is an interesting technique to avoid javascript when pre-loading images.

Add Your Comment

If you comment to get a link back to your site, that's fine, but please add a comment that expands what is written in the story above. Make your comment personal, share your experience, ask a question. Thank you!

You must be logged in to post a comment.

blog comments powered by Disqus

Connect With Us Online

We provide low-cost, how-to internet marketing information for individuals, businesses, and groups, as well as the people who support them. Learn more

  • Latest Stories
  • Popular Articles
  • Popular Stories

Great Online Communities to Explore

Get the Email Newsletter: Keep Up To Date