Image, Font, Script, and Metadata optimization strategies.
Core optimization primitives provided by Next.js. Monitor First, Optimize Later.
Before applying optimizations, identify bottlenecks using:
next/speed-insights, or React Profiler.next/image)<Image src="..." alt="..." width={500} height={300} />.images.remotePatterns in next.config.js for external URLs.next/font)localFont({ src: ... }).Inter({ subsets: ['latin'] }).Static: Export metadata object from layout.tsx or page.tsx.
export const metadata: Metadata = {
title: 'Dashboard',
description: '...',
};
Dynamic: Export generateMetadata({ params }) function.
export async function generateMetadata({ params }) {
const product = await getProduct(params.id);
return { title: product.name };
}
Open Graph: Use openGraph key for social cards.
next/script)strategy="afterInteractive" (Default): Google Analytics.strategy="lazyOnload": Chat widgets, low priority.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer