force browser to load image

Discussion in 'HTML & Website Design' started by davidcarlson, Feb 5, 2009.

  1. #1
    If I have a page that uses an image, say, when the mouse hovers over a certain area, and I don't want a delay, how do I get the browser to load the image in advance?

    Initially, I think, the browser loads the page and any images that it needs to show the page. Any images that are called by Java routines, for example, are not loaded until they are needed, i.e. until the event that triggers them happens.

    Is there something I can put in the html of my webpage that will force the browser to load the image beforehand so that it will be ready the instant it is needed, to avoid delays?

    thanks
     
    davidcarlson, Feb 5, 2009 IP