Follwing the overhaul on the Warhammer Fantasy and Blood Bowl Name Generator. I've tackled the 40k name generator this month
Regiment mode now builds its whole list in one go instead of adding names to the page one at a time, so big batches appear much faster. Every faction now has an SVG icon, so they stay sharp at any size and switch cleanly to dark mode, for all you night lords out there. Most of the month, though, went into the code underneath. It's vital work, but it's not much to look at, and while you'll never see it, you will notice the difference.
So what did all that effort actually change? Here are the numbers:
| Removals | 1589 |
|---|---|
| Lines Total | 1,671 |
| Lines Removed | -92.4% 1,544 |
| Characters Total | 112,310 |
| Characters Removed | -92.6% 104,037 |
| Additions | 536 |
|---|---|
| Lines Total | 611 |
| Lines Added | +80.0% 489 |
| Characters Total | 75,308 |
| Characters Added | +89.0% 67,035 |
Old total size 114kb
New total size 77kb
The page is now down to 67.5% of its original size, so it should load faster and give bugs fewer places to hide, fingers crossed.
On the content side I've added new generator for Fellgors
That leaves the Age of Sigmar generator to get this optimisation treatment, it might be a December or January project we'll see.



Comments
Post a Comment