πŸ“– 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!