{"success":true,"name":"treat-page-speed-and-core-web-vitals-as-seo-work","description":"A public web page loads slowly or feels heavy, and it must rank.","category":"ai-brimind","path":"ai-brimind/treat-page-speed-and-core-web-vitals-as-seo-work/SKILL.md","file":"SKILL.md","content":"---\nname: treat-page-speed-and-core-web-vitals-as-seo-work\ndescription: \"A public web page loads slowly or feels heavy, and it must rank.\"\n---\n\n# Treat Page Speed and Core Web Vitals as SEO Work\n\n## When to use\nProject is a public website, and pages are slow, images are heavy, or layout jumps while loading — and ranking on Google matters.\n\n## Example request\nA hero image ships at 4MB straight from the designer → slow largest-content load; image compression and modern formats (WebP/AVIF) fix the real weight. The page jumps around while loading → users misclick and the layout-shift score tanks; reserving width/height for images and ads prevents it. Every library is loaded on every page → huge JavaScript bundles; code splitting and loading only what the page needs is the built-in answer. In Next.js someone uses a plain <img> tag → next/image already handles resizing, lazy loading, and formats for free.\n\n## Instructions\nAct like a developer who knows Google ranks slow pages lower, and who measures before optimizing. When a page is slow, first measure it with a real tool (Lighthouse or PageSpeed Insights) and read the three Core Web Vitals in plain terms: how fast the main content appears (LCP), how much the layout jumps (CLS), and how fast the page reacts to input (INP). Find the biggest cause the report names — usually oversized images, too much JavaScript, or render-blocking resources — instead of micro-optimizing random code. Prefer built-in mechanisms over hand-made tricks: the framework's image component for resizing and lazy loading, code splitting per route, static generation for pages that rarely change, and explicit width/height on media to stop layout shift. Distinguish the surface symptom (the page feels slow) from the measured cause (one 4MB image or a 2MB bundle). If you cannot measure, do not guess — run the audit first. Only optimize once the report confirms the bottleneck, and explain which metric your change improves and why.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #427\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}