Below are revisions for this snippet.

Preload Images in an Array





Syndication

Revision Revison 1
Load images more quickly in a web page by having the browser cache them before they are requested by the user.

This script specifies the location of images that share a common folder. It can be used for multiple images and folders.

This method uses less code and is more maintanable than specifying the location of each image individually.