I have a custom font that I use with @fontface. the font is local. on the first load of the page there's a small lag and every time a new page or a component loads there is the same lag. if I don't use the custom font there are no lags. Examples below.
this is the css :
@font-face {
font-family: 'hebrew';
src: url(${hebrewFont});
font-weight: 300;
font-style: normal;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: hebrew;
font-weight:100;
scroll-behavior:smooth;
}
this is the lag (You can see it kind of lags/jumps. it looks like it first loads the section with a regular font and then it loads my custom font):
if I dont use the custom font (it happens with every custom font) there are no lags. see example:
* {
font-family: Trebuchet MS,sans-serif;
}
thank you for help (: I didn't found this problem at all in the web.

