Preloading all jpgs in background

Hi, I have a gallery that loads external jpg’s. I’d like to have the gallery start and while viewing the images, the rest are loading in the background.

Any ideas where I can find out how to do this?

Thanks,