If you are speaking about the order images are displayed by a web browser, you do not have much control over that, as long as you have several <img>
tag on your page :
- the browser will request the images from the server in the order it wants (most probably, the first
<img>
tag encountered will be the first image requested)
- each image takes some time to download ; and each image is displayed when it's downloaded ; considering small images should be downloaded faster, small images should be displayed first... depending on the order they were requested -- see previous point.
In the end, if you want absolute control on the order the images are displayed, your initial HTML should probably not contain all the <img>
tags : a solution would be to add those, in the right order, when the previous image is downloaded.
This can probably be done with some Jacascript code, to detect when an image is loaded (event "load") ; and when an image is loaded, just add a new <img>
tag to the page, for the next one ; and so on.
But I wouldn' go with such an idea : it won't work if JS is disabled, your images will not be seen by search engines, ...