Grow your CSS skills. Land your dream job.

Pre-loading images

  • # March 6, 2009 at 2:35 pm

    Maybe this has been asked 1000 other times. But I can’t seem to find a good post about ‘Preloading images’

    What is the best way to pre-load images for other pages on a site? I understand there is CSS, Jquery and other JS techniques, but what is the easiest and most effective way?! Currently I am using an ‘Array’ and I’m ‘pre-loading’ about 15 images total:

    Code:

    This works ok but creates W3C issues! It's not the end of the world for me but would like to get it out of my hair!

    Any help, comments or concerns would be greatly appreciated!

    # March 7, 2009 at 7:07 am

    I always used this as a pre-loader:

    Code:
    # March 7, 2009 at 4:32 pm

    Good to know. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".