Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Question Pre-loading all header images

    Hello everyone, I have a website that I built and completed. The only issue I have with it is that it takes an extra split second to load the header image on each page the first time you visit each one. After I go through all the pages they all load instantly, but the first time i visit it after a restart, or after i clear my history it takes a second for each header to load.

    I'm looking for a way to load the images into memory somehow so that when you click on the link to go to another page that header is already loaded, and shows up instantly. I have tried Javascript preloading with a function but that didn't do anything for me. Making images hidden with css seemed to work, but now it's not working so well.

    I was wondering what my options are for this? I just want it so that when you go to the site, the index page loads all of the page headers (only 5) so that when you continue searching it instantly loads the pictures.


  2. #2
    Supreme Master coder!
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,168 Times in 1,159 Posts
    Show us the URL to the site.

    I'm curious what size the image is.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts