[thelist] Not declaring image dimensions
David Dorward
evolt at david.us-lot.org
Mon May 17 10:34:17 CDT 2004
On 17 May 2004, at 16:27, Clive R Sweeney wrote:
> It's become second nature now to *always* include the height and width
> for images, but what is the downside of not including dimension
> attributes in an image tag? Is it that the page will load more slowly
Technically it will load faster as you will have shaved off about 20
bytes (not kilobyes) :)
Some browsers may pause rendering until they have downloaded the image
and know its dimensions.
> and that the page display will change as the images load?
Certainly. Many browsers keep rendering using height 0, width 0 for the
image dimensions, then go back and rerender the past stuff. This can be
very irritating (scroll to the point you want to read, earlier image
finishes loading, page content jumps down 500 pixels).
--
David Dorward
<http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
More information about the thelist
mailing list