docs(docs-infra): Improve font loading performance with preconnect

Adds preconnect links for Google Fonts domains to establish early
connections, reducing latency and improving font loading speed

(cherry picked from commit ffa19ddd3f)
This commit is contained in:
SkyZeroZx 2025-11-02 15:09:35 -05:00 committed by Andrew Scott
parent 97c31ae1a8
commit d66384db49

View file

@ -86,6 +86,8 @@
<meta property="twitter:image" content="https://angular.dev/assets/images/ng-image.jpg" />
<!-- Fonts -->
<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=Inter+Tight:wght@500;600&family=Inter:wght@400;500;600&family=DM+Mono:ital@0;1&display=swap"
rel="stylesheet"