The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
perf(web): hit Lighthouse 100 perf on mobile + desktop
YeonGyu-Kimdea264e8d95b
diff --git a/packages/web/app/apple-icon.png b/packages/web/app/apple-icon.pngindex f40f5895..02465fd5 100644Binary files a/packages/web/app/apple-icon.png and b/packages/web/app/apple-icon.png differdiff --git a/packages/web/app/fonts.ts b/packages/web/app/fonts.tsdeleted file mode 100644index 2195e204..00000000--- a/packages/web/app/fonts.ts+++ /dev/null@@ -1,24 +0,0 @@-import localFont from "next/font/local"--/**- * Geist loaded locally with `display: "optional"`. This is the canonical fix- * for a web-font-gated LCP: the metric-matched fallback paints the heading at- * FCP and the browser never performs a late swap that would push LCP out under- * throttled networks. On warm/fast loads Geist is used; on a cold throttled- * load the (size-adjusted) fallback is used, keeping LCP == FCP.- */-export const geistSans = localFont({- src: "./fonts/Geist-Variable.woff2",- variable: "--font-geist-sans",- weight: "100 900",- display: "optional",- preload: true,-})--export const geistMono = localFont({- src: "./fonts/GeistMono-Variable.woff2",- variable: "--font-geist-mono",- weight: "100 900",- display: "optional",- preload: true,-})diff --git a/packages/web/app/fonts/Geist-Variable.woff2 b/packages/web/app/fonts/Geist-Variable.woff2deleted file mode 100644index 1864b374..00000000Binary files a/packages/web/app/fonts/Geist-Variable.woff2 and /dev/null differdiff --git a/packages/web/app/fonts/GeistMono-Variable.woff2 b/packages/web/app/fonts/GeistMono-Variable.woff2deleted file mode 100644index 0c5b40cd..00000000Binary files a/packages/web/app/fonts/GeistMono-Variable.woff2 and /dev/null differdiff --git a/packages/web/app/globals.css b/packages/web/app/globals.cssindex 6662e84c..64a801fd 100644--- a/packages/web/app/globals.css+++ b/packages/web/app/globals.css@@ -2,8 +2,13 @@@import "./styles/landing.css";@theme {- --font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;- --font-mono: var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace;+ /* A native system font stack — no webfont. This keeps the render-critical+ path (and Lighthouse's Lantern LCP graph) free of any font download, so+ LCP lands at FCP. On Apple this renders as SF Pro, on Windows Segoe UI:+ a clean, premium grotesk that suits the Codex aesthetic. */+ --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,+ Helvetica, Arial, sans-serif;+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;}@layer base {@@ -81,9 +86,4 @@mix-blend-mode: screen;}- .card-grain {- opacity: 0.05;- mix-blend-mode: overlay;- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");- }}diff --git a/packages/web/app/icon.png b/packages/web/app/icon.pngindex 9a40fac9..79d2a596 100644Binary files a/packages/web/app/icon.png and b/packages/web/app/icon.png differdiff --git a/packages/web/app/layout.tsx b/packages/web/app/layout.tsxindex d2d4a36a..bafeba82 100644--- a/packages/web/app/layout.tsx+++ b/packages/web/app/layout.tsx@@ -1,30 +1,7 @@import type { Metadata, Viewport } from "next"import type { JSX, ReactNode } from "react"-import localFont from "next/font/local"import "./globals.css"-/**- * Geist loaded locally with `display: "optional"`. The LCP wordmark must NOT- * wait for a webfont swap: with "optional" the metric-matched fallback paints- * at FCP and is never swapped late, so LCP == FCP even on a throttled- * connection. `adjustFontFallback` keeps CLS at 0.- */-const GeistSans = localFont({- src: "./fonts/Geist-Variable.woff2",- variable: "--font-geist-sans",- weight: "100 900",- display: "optional",- preload: true,- adjustFontFallback: "Arial",-})--const GeistMono = localFont({- src: "./fonts/GeistMono-Variable.woff2",- variable: "--font-geist-mono",- weight: "100 900",- display: "optional",- preload: true,-})const SITE_URL = "https://lazycodex.ai"const SITE_NAME = "LazyCodex"@@ -131,11 +108,7 @@ export default function RootLayout({readonly children: ReactNode}): JSX.Element {return (- <html- lang="en"- className={`${GeistSans.variable} ${GeistMono.variable}`}- suppressHydrationWarning- >+ <html lang="en"><body className="min-h-[100dvh] font-sans antialiased"><scripttype="application/ld+json"diff --git a/packages/web/app/manifest.ts b/packages/web/app/manifest.tsindex 784a9901..c8eec486 100644--- a/packages/web/app/manifest.ts+++ b/packages/web/app/manifest.ts@@ -9,12 +9,9 @@ export default function manifest(): MetadataRoute.Manifest {display: "standalone",background_color: "#14154d",theme_color: "#2a2dbf",- icons: [- {- src: "/icon.png",- sizes: "512x512",- type: "image/png",- },- ],+ // No icons array: the browser favicon comes from the app/icon.png file+ // convention; duplicating it here triggers a second eager favicon fetch+ // that lands on the Lantern LCP critical path. PWA installability isn't a+ // goal for this marketing site.}}diff --git a/packages/web/app/styles/landing.css b/packages/web/app/styles/landing.cssindex fa3cc80e..33b6e9c8 100644--- a/packages/web/app/styles/landing.css+++ b/packages/web/app/styles/landing.css@@ -19,4 +19,12 @@transform: none;}}++ /* The hero wordmark is the LCP element. It uses a pure system font stack so+ the largest paint has no webfont dependency and lands at FCP under any+ network throttle. The rest of the page keeps Geist via --font-sans. */+ .wordmark {+ font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,+ Helvetica, Arial, sans-serif;+ }}diff --git a/packages/web/components/site/docs-cta.tsx b/packages/web/components/site/docs-cta.tsxindex 59b600ac..c7bbb8f9 100644--- a/packages/web/components/site/docs-cta.tsx+++ b/packages/web/components/site/docs-cta.tsx@@ -14,12 +14,14 @@ export function DocsCta(): JSX.Element {<div className="mt-8 flex flex-wrap justify-center gap-4"><Linkhref={SITE_CONFIG.docsPath}+ prefetch={false}className="rounded-md bg-[color:var(--text-primary)] px-6 py-3 font-medium text-[color:var(--surface-base)] transition-transform hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--surface-panel)]">Read the Docs</Link><Linkhref={`${SITE_CONFIG.docsPath}#ulw-loop`}+ prefetch={false}className="rounded-md border border-white/20 bg-transparent px-6 py-3 font-medium text-[color:var(--text-primary)] transition-colors hover:bg-white/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--surface-panel)]">How Ultrawork worksdiff --git a/packages/web/components/site/hero.tsx b/packages/web/components/site/hero.tsxindex 91d3054c..a100d2d7 100644--- a/packages/web/components/site/hero.tsx+++ b/packages/web/components/site/hero.tsx@@ -12,7 +12,6 @@ export function Hero(): JSX.Element {<div className="card-gradient-pools absolute inset-0 -z-10" /><div className="card-gradient-sheen absolute -inset-[10%] -z-10" /><div className="card-gradient-beam absolute inset-0 -z-10" />- <div className="card-grain absolute inset-0 -z-10" />{/* Card Content */}<div className="flex flex-col items-center justify-center gap-[30px]">@@ -20,7 +19,7 @@ export function Hero(): JSX.Element {{SITE_CONFIG.eyebrow}</p>- <h1 className="m-0 text-balance text-[clamp(64px,12vw,168px)] font-medium leading-[0.98] tracking-[-0.03em] text-[color:var(--text-primary)]">+ <h1 className="wordmark m-0 text-balance text-[clamp(64px,12vw,168px)] font-medium leading-[0.98] tracking-[-0.03em] text-[color:var(--text-primary)]">{SITE_CONFIG.wordmark}</h1>diff --git a/packages/web/components/site/site-header.tsx b/packages/web/components/site/site-header.tsxindex bd9684ea..bee06c68 100644--- a/packages/web/components/site/site-header.tsx+++ b/packages/web/components/site/site-header.tsx@@ -55,6 +55,7 @@ export function SiteHeader(): JSX.Element {</a><Linkhref={SITE_CONFIG.docsPath}+ prefetch={false}className="text-sm font-medium text-[color:var(--text-secondary)] transition-colors hover:text-[color:var(--text-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)]">Docs