From c53c1dc169c720809bfa7072306b2141abc12491 Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Wed, 5 Aug 2026 00:31:26 +0530 Subject: [PATCH] fix: improve mobile landing performance --- landing-astro/src/layouts/Layout.astro | 17 ++++------------- landing-astro/src/styles/global.css | 8 ++++++++ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/landing-astro/src/layouts/Layout.astro b/landing-astro/src/layouts/Layout.astro index a097ee8..1d0b626 100644 --- a/landing-astro/src/layouts/Layout.astro +++ b/landing-astro/src/layouts/Layout.astro @@ -1,11 +1,4 @@ --- -// Self-hosted Geist variable font. Astro inlines the @font-face into -// the page's CSS via Lightning CSS (build.inlineStylesheets: 'always'), -// so we drop the external fonts.googleapis.com round-trip from the -// LCP path. Family registers as 'Geist Variable' — mapped onto the -// existing --font-geist-sans CSS var below so global.css needs no -// changes. Geist Mono is not used on the landing surface; skipped. -import '@fontsource-variable/geist'; import '@/styles/global.css'; interface Props { @@ -77,14 +70,12 @@ const jsonLd = { - {/* Mirror the CSS vars Next.js's next/font set up, so `font-sans` - (which resolves to var(--font-sans) → var(--font-geist-sans)) - keeps working unchanged. Fontsource Variable registers Geist as - 'Geist Variable'; plain 'Geist' stays in the fallback chain. */} + {/* Use the native UI stack on the static landing page. This avoids a + late font swap moving and delaying the hero on constrained devices. */}