ZadanieOptimize the slow page. Add: defer to all scripts, preconnect to https://cdn.example.com (crossorigin), preload /hero.webp as='image' fetchpriority='high', preload /inter.woff2 as='font' type='font/woff2' crossorigin, set loading='lazy' on the below-fold img, set width+height on both imgs, add <meta name='view-transition' content='same-origin'>.
Zwieńczenie modułu: skróć 800 ms wolnej strony
200 XP14 min
Teoria
Putting A7 together
The starter HTML is a SLOW page: blocking scripts, no resource hints, eager images, no compression headers (out of our control), no preconnect. LCP measured: ~2.4s.
Goal: get LCP under 1.6s by applying every A7 technique:
- Make all scripts non-blocking (defer or async).
- Preconnect to external origins you'll fetch from.
- Preload the LCP image with
fetchpriority="high". - Preload the hero font.
- Lazy-load below-fold images.
- Set width/height on every image (CLS).
- Add view-transition meta for SPA-like nav.
🔒
Zarejestruj się, aby zacząć kodować
Teoria jest dostępna dla każdego. Edytor, podgląd na żywo i check odblokowują się z 7-dniowym darmowym okresem próbnym — wymagana karta, anuluj w dowolnym momencie.
Zarejestruj się — darmowy okres próbny →Pierwsze 10 lekcji w każdej ścieżce jest darmowych. Karta nie jest wymagana.