Menu

Defining width & height in img tags

2003-04-25
2003-04-28
  • Mark Hattam

    Mark Hattam - 2003-04-25

    Spent a little while last night adding height="xxx" and width="xxx" (and height=\"xxx\" etc) specifications to the various IMG tags.

    This has sped up the rendering of pages, especially the larger ones.

    Can v1.2.5 (or whatever) include these attributes as standard?

    Mark

     
    • John Finlay

      John Finlay - 2003-04-25

      I can do that.  I wasn't aware that it made a difference and it is a lot easier as a programmer to leave them out.

      --John Finlay

       
    • Mark Hattam

      Mark Hattam - 2003-04-26

      It obviously doesn't speed up the downloading, but it does allow the browser to perform the layout of items on the page as soon as it gets the html code, rather than waiting for each and every graphic image to load for it to discover the pixel dimensions.

      http://builder.cnet.com/webbuilding/pages/Authoring/Htmltips/ss04a.html

      Much better user experience

      I also noticed that once you put some items on the timeline ... you get the spacer image being specified with width="-10" and height="-10" ... I don't know the consequence of negative width/height.

      Mark

       
    • John Finlay

      John Finlay - 2003-04-28

      I'm going to work on optimizing the timeline page with the next release and the new design.  I don't think that I even need the spacer image anymore and hope to be able to take it out.

      Thanks for the tip on specifying image heights and widths.

      --John

       

Log in to post a comment.