Search code examples
cssfont-face

Should @font-face declarations be done early in the css file or towards the end?


Is there a difference in performance (or otherwise) for when a @font-face is declared? Does calling it early in the css file have a positive/negative impact? Is this different if the font is coming from an external CDN like Google Fonts?


Solution

  • The position of declaration doesn't really affect the performance provided that the font has been used only after declaration. I don't think there is any difference in using an external CDN. For further reference see this.