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.

    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

    • Popular Articles
    • Latest Stories
    • Popular Stories

    Great Online Communities to Explore

    Get the Email Newsletter: Keep Up To Date