![]() Preserved Topic: Weight="200" height="152"> (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() What´s the difference between writting the size of a image and not to do it? i mean in HTML... |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() It helps with page rendering. It provides the info to the browser, which uses it to create the page you see. If you don't specify that, the browser has to wait till it grabs the file, then figure out the dimensions of the image, before it can continue rendering the page. |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() That's exactly right (and one of the very first things Doc ever taught me). If you don't specify the size of the image, then the browser can't make room for it on the page until it loads the image. In NN, this results in a wait time before the page displays. In IE, it causes the rest of the page content to shift around once the image begins to load. (And if you've already started reading, that's extremely annoying.) |