[thelist] Cutting the fat from a page...help!

Craig Saila crsaila at yahoo.ca
Thu Aug 9 13:36:28 CDT 2001

TRG wrote:
> Any thoughts would greatly be appreciated, I already
> swept the code for extra tags..just wondering about
> the scripts, etc.

Just by calling all the scripts as external JavaScript files, you will 
save the size on other pages using the same scripts as it will be cached.

You mentioned you swept the code for extra tags, so I'm not sure if 
you've also caught some of the bizarre redundant attributes (like 
rowspan="1", and multiple <div align="left">) -- if not you should run 
it through HTML Tidy or something similar. There are also chunks like this:

  <td height="50" colspan="3">
   <div align="center">
    <p><font face="Arial, Helvetica, sans-serif" size="3" 
     <font size="+1">Web Designers... Want to make more 

which could be cut down to (saving 0.08KB in this example alone):

  <th colspan="3">
   <p><br><font face="Arial, Helvetica, sans-serif" color="#FF0000" 
size="+1">Web Designers...  Want to make more money?</font></p>

Also considering using external, linked stylesheets, it will also reduce 
the page-size greatly.


Craig Saila
craig at saila.com  :  http://www.saila.com/

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

More information about the thelist mailing list