posted 24 years ago
Browsers generally cache images, so if you know you are going to need some images on later pages, then it is quite feasible to load them "invisbly" on the current page, using a simple <img src="/wherever/images/a.gif" width=1 height=1> anywhere on the page
This won't get in the way of someone reading the text on the page, but willl cache the image in the background. It is always advisable to use a full path to the images if you do this, just in case the browser caches /wherever/pages/../images/a.gif differently than /wherever/other/../images/a.gif (which it might).
This system has a few advantages over the Javascript version above:
1. It doesn't need Javascript, so it will work in browsers which don't support JavaScript, or which have Javascript disabled.
2. If the user has turned of images (or is using a text-only browser), then there is no overhead of loading images which won't ever be shown.
I hope this helps.