Not sure how, but this fixed fonts loading slowly

This commit is contained in:
Michał Gdula 2023-04-09 12:12:32 +00:00
parent badb2ebde2
commit 26a081be3e
3 changed files with 12 additions and 10 deletions

View file

@ -0,0 +1,7 @@
@font-face {
font-family: 'Rubik';
src: url('./Rubik.ttf') format('truetype');
font-style: normal;
font-display: block;
font-weight: 300 900;
}

View file

@ -74,13 +74,3 @@ $breakpoint: 800px
--breakpoint: 800px
// I have no clue if its webassets or libsass thats doing this shit
// But one of them is trying to "correct" the path, and 404-ing the
// font, so enjoy this path fuckery
@font-face
font-family: 'Rubik'
src: url('../../../../static/fonts/Rubik.ttf') format('truetype')
font-style: normal
font-display: swap
font-weight: 300 900