Preload images with jQuery Preload plugin

A jQuery plugin that preloads images

jQuery Preload plugin logo


There are times that we need to preload images to bring better user experience. You will not want your users to wait for 2 seconds when they hover their mouse over the navigation menu before the background image actually appears; or keep them waiting too long when they switch a slideshow. This plugin can also be useful when you want to add more images on the page through a ajax call.


  • Click here to see the demo
  • The demo page is also included in the source file



  • jQuery 1.2.3+

Browser Compatibility


  • First, make sure you are using valid DOCTYPE
  • Include nessesary JS files
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="path-to-file/jquery.preload.js"></script>


Example code:
      $.preload( '/img/space.gif',

This might be the simplest yet helpful plugin. It’s even shorter than this introduction. Enjoy it :)

Related posts