engrafo
engrafo copied to clipboard
Optimise Computer Modern webfonts
We currently naively download the entire font face. We should probably split up into ranges so it loads quicker, perhaps using something like this: https://www.npmjs.com/package/font-ranger
Google might do this for us, so it might be worth waiting for this: https://github.com/google/fonts/pull/1129
Might be able to get them from https://fontlibrary.org/
Fontlibrary does not seem to be behind a CDN, and it's not clear who looks after it. Frustratingly it seems to be behind Cloudflare, but without the CDN switched on. IP resolves to Linode, slow pings from Athens.
rawgit no longer exists, so switching to jsdelivr, so that's probably good enough for now.
If Google haven't implemented this by the time we want to go to production, then we can split up the fonts and host on a CDN ourselves.