title: Wordpress - Preload images from folder with jQuery once
body: <p>Currently, I am using WP Super Cache plugin which is great for generating static html pages and preloading images from the database, but I have a large background image and other small icons in my theme directory in an images folder that I'm using <a href="http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery/" rel="nofollow">jQuery Load CSS Images</a> for.  </p>
  
  <pre><code>&lt;?php if ( is_home() ) { ?&gt;
  &lt;script src="&lt;?php bloginfo('template_directory'); ?&gt;/scripts/preload.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  jQuery(document).ready(function(){
     jQuery.preloadCssImages();
  });
  &lt;/script&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>The script searches then preloads img src tags and I was wondering if there is a jQuery plugin that can just preload my theme's image folder once.  The <code>if ( is_home() )</code> statement works to an extent, but will still load multiple times.   Was wondering if there is a way to do so just once, maybe by detecting if images are already loaded? </p>
  
  <p>Any suggestions would be greatly appreciated.  </p>