/    Sign up×
Community /Pin to ProfileBookmark

preload images to speed rollover

I would like to create a page which has 12 – 20 thumbnailed images across the top, and as the user rolls over the thumbnail a fullsized version appears below the thumbs (I’m sure you’ve seen similar pages).

My questions:
– What is the best way to ensure the page loads quickly? I don’t mind if the user has to wait (a little) for the full sized image to load, but not the initial page with thumbs.

  • What is the best way to maintain flexibility so I can quickly change the images, and the number of images? (i.e. One week there are 14 pictures, and the next week there are 16 new pictures.)
  • I’ve found numerous tutorials or sites which do this, but they do it in sometimes vastly different ways. I’ve yet to find a thorough explanation of the different ways to handle this, and why/when one option is better than others. I’m extremely comfortable optimizing images, but not as experienced as a web developer.

    Thanks in advance for your help and insight.

    to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @nrmanby spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...