I tried this order for css (they can be located in different files) and it works.

I want to know - is this generally correct and is such an order allowed? As far as I can understand it is on this principle that the "optimizers" of loading fonts on js work.

h2 { font-family: 'inconsolatacyrmedium'; } @font-face { font-family: 'inconsolatacyrmedium'; src: url('inconsolatacyr-webfont.woff2') format('woff2'), url('inconsolatacyr-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } 
  • You can, because as soon as the given font is announced (uploaded), it will be displayed - Vasily Barbashev
  • leave your answer not as a comment but as an answer for me to accept. and so - I can not - progreccor

1 answer 1

Styles, fonts can be taken anywhere, in any order, BUT, they can be displayed only in the case (or if) when they are loaded on the page.

These elements include pictures, fonts, icon fonts, and the like.