Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tim's EPD -> HTML generator - more efficient if square color is in GIF?

Author: Tim Mirabile

Date: 15:52:26 01/08/00

Go up one level in this thread


On January 08, 2000 at 15:37:28, Richard A. Fowell (fowell@netcom.com) wrote:

>Tim's HTML for an empty black square at the left edge of board:
>
><tr><td bgcolor="#009966"><img src="/diagram/es.gif" border=0 alt="::"
>width="34" height="35">

How did that border=0 get in there.  Must be since I used my HTML editor to
write Perl. :)  I can take that out (I think) since I'm not linking the images.

Remember I save 13 images this way, not 7.  Bandwidth saved will depend on how
well they are cached by each person's browser. Also, having width and height is
a "good thing".  Without it, some browsers will not show any text until all the
images are loaded which could affect the positioning of that text.  With the H+W
you can start reading text while waiting for the images.  Not much of an issue
here since the images are less than 1K each, but could help on a laggy
connection.  In I.E. the whole page layout may jump around as each image is
loaded - yuck.

Disk space is not an issue since this HTML is generated on the fly and never
stored.  Perhaps CPU usage on the server could be a factor but when the server
is running well, the whole script runs quite fast.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.