There are several ways to upload (or preload) images to a page, if that is what you need. You can use javascript to load all images in a "hidden" container ( <div style="display: none"> ).
var anImage = new Image anImage.onload = function() {...}
Browsers will cache these images, so you can even get rid of the container after downloading all the images if you want!
An additional advantage is that the images will not be reloaded from the server if the page is refreshed. If you want a specific image to appear when the page loads after the update, I would suggest changing window.location.hash (the hash of the URL) to the image identifier and read this property when the page loads and displays the corresponding image.
http://..../millview/page.html#midnightExpress
and then:
window.onload = function() { selected = window.location.hash.substring(1);
Experiment with this ... you might find it useful to use URL hashes as a kind of "persistence" on pages / updates / stories.
(If you think this is too exhausting and useless!)
Browsers, including IE, cache images at their URL. So, as long as the src attribute remains unchanged for the previously loaded and currently viewed image, the image will not be reloaded from the server, just taken from the cache is pretty fast. A preloaded image element may be discarded after the image is loaded - we want the image to be cached by the browser
source share