How do I get rid of font-flickering ? Is there any...
# javascript
i
How do I get rid of font-flickering ? Is there any way I can get the type-safe css kotlin-code to be turned into a static css file during compilation? I'm writing a react application. I've written some css which i want to be global with kotlin-css using plain
CSSBuilder
I'm using a custom font (i.e. the css contains fontFace declarations) I inject the css into my react project using the
injectGlobal
function. Everytime the react application re-renders, the css seems to be reloaded, and I get a quick flash of the fonts without the custom font applied. It seems to be this problem: https://github.com/styled-components/styled-components/issues/2900
👀 1