engrafo icon indicating copy to clipboard operation
engrafo copied to clipboard

Optimise Computer Modern webfonts

Open bfirsh opened this issue 7 years ago • 3 comments

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

bfirsh avatar Aug 20 '18 13:08 bfirsh

Might be able to get them from https://fontlibrary.org/

bfirsh avatar Nov 05 '18 08:11 bfirsh

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.

bfirsh avatar Nov 27 '18 17:11 bfirsh

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.

bfirsh avatar Nov 27 '18 17:11 bfirsh