[thelist] Image Size Included in Image Tag
Diane Soini
dianesoini at earthlink.net
Thu Dec 11 20:24:00 CST 2003
It looks nicer when images are loading if the w and h are set, however
it can be convenient if you are using a script that might load
landscape- or portrait-oriented images and you really only care about
the size of one dimension. I do notice that news web sites tend not to
set the size because they are likely to have a different photo each day
to accompany the story, and that photo is likely to vary from day to
day. Sure, the text jumps around when you are reading, but it's not the
end of the world.
Modern browsers tend to render as they go, which means no matter what
you've done to the images, it will require the screen to repaint a few
times as all the elements are loading. Anything you can do to reduce
the amount of screen repaint really does help the perception of quick
loading time, because you are reducing the rendering time.
On Thursday, December 11, 2003, at 02:55 PM,
thelist-request at lists.evolt.org wrote:
> At 08:53 AM 12/11/2003, Brian W. Reaves wrote:
>> If I create an image to the size I want it, are there any reasons why
>> I
>> have to include the "height & width" of the image in the "img" tag?
>>
>> EX:
>> <img src="images/image1.jpg" alt="Image" title="Image" />
>> vs.
>> <img src="images/image1.jpg" height="150" width="150" alt="Image"
>> title="Image" />
More information about the thelist
mailing list