I found a very nice font for my next project. (This here: https://www.1001freefonts.com/surfing-capital.font)
Now I have the problem, that when my css-file is loaded and the font is applied to the p-Element, my page freezes.
I wanted to create a little loading animation, because I thougt, I can show this to my visitors, while my CSS-File is processed. But as soon as the css-rule gets applied, my animation freezes too.
So, loading of the css-file is not the problem and works without blocking, only if the css-rule with the font-family is applied to the text everything else gets blocked.
I also tried to load the css with media=none:
<link rel="stylesheet" type="text/css" href="style.css" media="none"/>
but here too, the page freezes until the text is displayed in the font.
Is there a trick, so that my animation doesn't freeze, while the css-rule is in progress?
Kind regards, Netherstorm