reuters-graphics / bluprint_graphics-kit

SvelteKit rig for graphics and newsapps
https://reuters-graphics.github.io/docs_graphics-kit/
21 stars 3 forks source link

Font swap still takes a while causing page text to flicker after load #104

Closed pkd2512 closed 1 year ago

pkd2512 commented 1 year ago

Even with display swap, the fonts take a while to load. So I propose adding the font-imports in the template.html or in a svelte:head in a +layout.svelte. That will ensure it's the first thing to load even before any other CSS.

hobbes7878 commented 1 year ago

I agree with a putting these in the template. Should only import definitely used fonts, i.e., knowledge and freight.