Why this matters
Improves performance and eliminates layout shifts.
Load fonts via next/font (google or local) and apply on html/body; avoid runtime <link> to fonts that cause FOUT/CLS.
Improves performance and eliminates layout shifts.
Side-by-side examples engineers can pattern-match during review.
<link href="https://fonts.googleapis.com/css2?family=Inter" rel="stylesheet" />import { Inter } from 'next/font/google'
const inter = Inter({ subsets:['latin'] })
export default function RootLayout({ children }){ return (<html className={inter.className}><body>{children}</body></html>) }<link rel="stylesheet" href="...google fonts...">Inter({ subsets:['latin'] }) + classNameFrom the same buckets as this rule.