CSS:@font-face
lastmod 2023-07-08created 2021-07-1017 edits
Performance Tunning
- How to Manage and Preload Local Fonts with Tailwind in Astro | BRAZY'S BLOG
- (Browser) Resource priorities - preload, preconnect, prefetch | Beomy - <link rel="???" />
- [CSS font-display, How to change the font rendering method] - font-display
- Best practices for fonts
- [Recommended] Best Practices When Using Fonts
- Creating font subsets | Dev Diary - Summary of how to use pyftsubset
- Gaining security and privacy by partitioning the cache - Chrome Developers - Why you should host fonts yourself (cache-related security issue)
- Understanding "same-site" and "same-origin" - Explanation of
eTLD+1.
- Understanding "same-site" and "same-origin" - Explanation of
--layout-features= flag of pyftsubset Web font loading speed optimization, etc... In summary:
-
&display=swapis the default - Connect to the font address in advance with
preconnect - Prioritized asynchronous CSS fetch with
preload - Add
media="print" onload="this.media='all'" - Include
noscripthandling - Apply src order and use local
- Split files using unicode-range
Preload vs Prefetch vs Priorities
When should you use what?
- <link rel="preload">
- Preload resources you are confident will be used on the current page.
- <link rel="prefetch">
- Prefetch resources you think will be used across multiple future navigation boundaries.
See also
- Font
- otf/ttf
- woff/woff2
- eot
- svg/svgz
- Web Font
- CSS:@font-face
- fonttools (python - include pyftsubset)
- Web Font Loader gives you added control when using linked fonts via @font-face.
Favorite site
- [Recommended] NAVER D2 - Recent trends in web font usage and optimization 1
- [Recommended] Optimize WebFont loading and rendering
- @font-face usage rules (differences between eot, woff, otf/ttf, svg/svgz) :: A Guide to Planet Earth
- How to apply web fonts (@font-face)
- (CSS) Applying web fonts in a stylesheet : @font-face
- Stackoverflow - Vue Cli 3 Local fonts not loading (Vue/Web Font)
- [Recommended] Optimizing web fonts
- Web font usage guide
- 7 tips for loading Google web fonts fast
- Making Google web font loading as fast as possible
- The Fastest Google Fonts (Original)
- Summary: Use only the KS X 1001 Hangul characters as a subset.
References
-
Web_font_usage_and_optimization_trends_-_NAVER_D2.pdf ↩