mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-10 10:28:43 +08:00
perf: self-host Google Fonts to eliminate render-blocking external request
Download Cormorant Garamond 600 and Manrope (variable, 400-800) woff2 files for latin + latin-ext subsets. Add @font-face declarations to style.css and remove the Google Fonts <link> and preconnect hints from base.html. Eliminates the render-blocking CSS fetch to fonts.googleapis.com that delayed First Contentful Paint by 100-300ms on typical connections. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -20,12 +20,6 @@
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="theme-color" content="#1c1410" />
|
||||
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Manrope:wght@400;600;700;800&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link rel="stylesheet" href="/static/style.css" />
|
||||
<script
|
||||
async
|
||||
|
||||
Reference in New Issue
Block a user