Preload all contents

is there any way to add a preload all images function to the thumbnail gallery in the tutorial?