Load all images at once, and reload indefinitely if loading fails.
You can also try these related scripts: