[thelist] Not declaring image dimensions

Maximillian Schwanekamp anaxamaxan at neptunewebworks.com
Mon May 17 12:10:09 CDT 2004

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
and that the page display will change as the images load? Or is there
more to it than that?

The only reason I can think of *not* to include the dimensions is in the
rare case where you might not know the dimensions at all before runtime and
cannot justify the server overhead of "sniffing" them beforehand (e.g. with
GD, ImageMagick or similar).

Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
voice: 541-302-1438
fax: 208-730-6504

More information about the thelist mailing list