images and display: none

Only Opera downloads the image when you switch the display to block. All other browsers download it immediately.

When image has display: none or is inside an element with display: none, the browser may opt not to download the image until the display is set to another value.

This page contains two hidden images. If you saw two alerts when you entered the page your browser downloaded them immediately.

Open test1, a pure img tag.

Open test2, a div containing an img tag.

Testimage 1
Testimage 2