3 ms·
When I was doing a conversion from image based game banners (said how many people were in the server and shit) to a javascript solution that used a single json
by MrStonedOne 6y ago
When I was doing a conversion from image based game banners (said how many people were in the server and shit) to a javascript solution that used a single json for all servers (as we got to 9 servers, loading at page start and refreshing these every n seconds was getting wasteful), I ran into this issue.
I wanted to keep the look and feel of the php/gd monospace font (could never find which font this used), but the normal defaultly included fonts i could find didn't have the same stylizing. Inconsolata on google fonts was however pretty close.
Only issue, there would be this ugliness for a half second when the page loaded while the font loaded, monospace has bigger size letters on the same font size, and its worse on firefox, so the banners would often wrap text that was suppose to be contained to one line while this loading happened. I couldn't preload the font, because cross-origin and doing the thing that is suppose to fix that didn't work in chrome.
So I just self hosted it, we already have cloudflare in front. Killed most of the delay, the preload tag killed the rest.
https://tgstation13.org https://tgstation13.org
- 0x0000000 6y agoRare to see a BYONDer on HN!