sirDonovan / Lanette

A bot for Pokemon Showdown written in TypeScript
MIT License
12 stars 28 forks source link

minimize board html #14

Closed FeluciaPS closed 4 years ago

FeluciaPS commented 4 years ago

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:

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)

sirDonovan commented 4 years ago

Thanks for working on this!