π Step 7: Testing & Quality#461 / 498
Core Web Vitals
Core Web Vitals (LCP / INP / CLS)
πOne-line summary
Google's key web performance metrics for loading (LCP), responsiveness (INP), and visual stability (CLS).
β¨Example
// Core Web Vitals
β ꡬκΈμ΄ μ ν λ‘λ© μλ(LCP)Β·λ°μμ±(INP)Β·νλ©΄ μμ μ±(CLS) ν΅μ¬ μΉ μ±λ₯ μ§ν
Tests: 1 passed
β‘Vibe coding prompt examples
>_
Lighthouse shows an LCP of 4.2 seconds. Give Next.js fixes, focused on the hero image and font loading, to get it under 2.5 seconds.
>_
Find the CLS issue where the page jumps while loading and fix it with explicit image sizes and skeletons.
>_
Write code that collects real users' LCP, INP, and CLS with the web-vitals library and stores them in Supabase.
Try these prompts in your AI coding assistant!