#290 make html of message list 19% smaller

open
nobody
5
2003-04-27
2003-04-27
No

please find enclosed a small patch to reduce the size
of the generated
HTML by about 19%. It does not change any functionality
or design but
omits some unnecessary html tags. It only reduces the
message list and
nothing else.

Displaying a message list before this patch was 24145
bytes and after
applying the patch it's 20202 bytes. So it reduces
about 4k which is
roughly 19%. This is especially important for slow
internet lines on which
squirrelmail is probably often used.

What it does is:
1. move many bgcolors from <td> to single <tr> (2.5 k)
2. remove <small><b> from empty flags (1.0 k)
3. remove "align=left" because it is default (0.7 k)

The patch is based upon current 1.4 CVS from 2003-04-17.

Would you like to apply the patch? Should I change
anything to fit your
needs?

Till

Discussion

  • Tilmann Bubeck

    Tilmann Bubeck - 2003-04-27

    Patch to make message list smaller

     
  • Edwin ten Brink

    Edwin ten Brink - 2003-08-28

    Logged In: YES
    user_id=402891

    Pity this patch didn't make it into SM 1.4.1. I've created a
    patch against 1.4.1 with these settings. By the way, I
    changed the default behavior on each row to 'center', which
    occurs in more lines than 'right' or 'left'.

     
  • Edwin ten Brink

    Edwin ten Brink - 2003-08-28

    Logged In: YES
    user_id=402891

    My patch was posted as patch #796942, since SourceForge
    didn't allow me to attach it here.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks