jQuery Plugin: Preload Images
Nov 12th in PluginsCost: Free, links back
Found Via: www.filamentgroup.com
Today, I came across a great jQuery plugin that will preload your images. This file now has a permanent spot in my "resources" folder. The plugin essentially scans your CSS files and preloads all of the images within it.
Related Freebies
Download some more awesome freebies!












User Comments
( ADD YOURS )Thomas Sturge November 12th
Great plugin. Just in time for me to add it to a new site I’m designing
( )jQuery April 6th
Great plugin and code but it downloads images from CSS file. I needed to preload images using jQuery to insert them into the DOM. This article describes it very nicely.
I hope it will help some who came here using google
Thanks for this plugin, I will probably use it in my next project.
( )Ben November 12th
That’s crazy… I googled this YESTERDAY and now you guys have a post on it. Bookmarked.
( )Jhay November 12th
Amazing!
( )RocyHua November 12th
Really Cool effect.
( )Lamin November 13th
Thanx for sharing
( )Eduardo November 13th
Great Plugin
( )David November 13th
That’s great – thank you. Say – care to share what else is in your ‘resources’ folder?! I’m always interested to learn peoples basic file structure when setting up a new project … !
( )Ben Reid November 13th
I’ve followed the steps to install it and I’m familiar with jQuery but I can’t see it working on my page.
I have a header that has a .jpg that’s about 11kb ( it’s assigned using ‘background-image’ in the css and is repeated across the x axis ) in size but I still see the ‘flickering’ as it’s being loaded.
Should the plug-in show the entire repeated section of image(s) in one go, once preloaded?
Even navigating away from the page and coming back to it makes no difference.
Any help would be nice.
( )David Kindness November 13th
For some reason I thought that css referenced images were automatically preloaded when the css file gets loaded into the browser.
Thought this was one of the factors in using css rollovers instead of javascript rollovers.
Wonder where i got that from. :S
( )David Kindness November 13th
ahh i remember now.
css rollovers have both images loaded anyway with the top image (off state) placed over the background image (on state) using css.
so its a kind of fake preloading.
so not the same thing
( )Chris November 13th
@Ben Clear the cache on your browser and then use Firefox’s ‘Net’ menu to see if the image has been preloaded.
I use the following plugin for my preloading:
http://flesler.blogspot.com/2008/01/jquerypreload.html
( )AdrianMG November 20th
I have posted a tutorial to preload js scripts and css with simple jqery and any plugins or 3rd lirabries. It is the same concepto behind the Gmail preloader:
http://yensdesign.com/2008/11/how-to-create-a-stylish-loading-bar-as-gmail-in-javascript/
( )John November 20th
Very nice, just what I’ve been looking for infact
( )insicdesigns November 21st
cool i like it
( )kareem November 23rd
this is wonderful tutorial i will put acopy of this lesson on
( )my site here
http://www.as7ap4you.com
dams February 28th
omg GREAT! im searching for this!.
( )olny in nettuts!.