Coderbay Essential Resources For Web Developers & Designers
Follow Coderbay
Subscribe to RSS-feed Follow Coderbay on Google Plus

JQuery Plugin: Preload CSS Images

Posted on July 22, 2011

Preload CSS images is a JQuery Plugin that automatically preloads CSS images referenced in CSS files. The plugin parses linked and imported stylesheets and creates an array of all the image urls in stylesheets.It loops through the array of urls and creates an image object for each one so they’ll be cached and ready for later use.

Implementation

$(document).ready(function(){
  $.preloadCssImages();
}); 

For more information,demo and documentation visit plugin homepage

Tags: ,



Enjoyed This Post? Share with others:

Digg this | stumble | del.icio.us | reddit.com | DZone

1 Comment(s)

  1. It doesn’t work. Throws a security error in Firefox 3-7 and fails to preload the images. Not sure why everybody links to this broken script.

Leave a Reply

Your email address will not be published. Required fields are marked *