I noticed the html used for boards in Lanette is pretty long, making it take more data from users, send slower, and take up more space in roomlogs. I've spent a lot of time on this very thing in Battle Dome, and figured I could make a difference here too :)
Essentially what I've done is:
Move the width attribute to the bottom cells only (the others will adapt)
Move height attribute to only the <tr> tags
Set text alignment and bold on the table rather than each relevant cell
Changed background-color to background because HTML doesn't actually care which you use
This takes the final HTML produced from about 4200 characters to about 2700 characters.
Note: I didn't get a chance to test this, and I've got no amount of typescript knowledge, so be sure to give this a test before merging and running the code.
(also I'm Felucia on PS if you want to talk)
I noticed the html used for boards in Lanette is pretty long, making it take more data from users, send slower, and take up more space in roomlogs. I've spent a lot of time on this very thing in Battle Dome, and figured I could make a difference here too :) Essentially what I've done is:
<tr>
tagsbackground-color
tobackground
because HTML doesn't actually care which you useThis takes the final HTML produced from about 4200 characters to about 2700 characters.
Note: I didn't get a chance to test this, and I've got no amount of typescript knowledge, so be sure to give this a test before merging and running the code. (also I'm Felucia on PS if you want to talk)