patx/afterdarklabs

improve performance for font loading

Commit a089f66 · patx · 2026-08-30T21:31:15-04:00

Changeset
a089f667ebb6f01a2ffcc70b23b0e14cdc74e3f3
Parents
e5d528fd5c57bc7e4c5ae5643f6e20b8be752e44

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/docs/index.html b/docs/index.html
index be1e0dc..dce8c21 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -28,10 +28,11 @@
     <meta name="twitter:description" content="South Florida website design and development for custom websites, Shopify stores, mobile apps, SaaS platforms, APIs, AI integrations, and business tools.">
     <meta name="twitter:image" content="https://afterdarklabs.io/twitter-card.png?v=3">
     <meta name="twitter:image:alt" content="After Dark Labs websites and tools that help businesses stand out">
+    <link rel="preconnect" href="https://fonts.googleapis.com">
+    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap">
     <link rel="stylesheet" href="https://afterdarklabs.io/index.tailwind.css?v=4">
     <style>
-        @import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
-
         :root {
             --neon: #ccff00;
             --page-bg: #17212b;