Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

fetchpriority-attribute

/fetchpriority-attribute

Optymalizuje Largest Contentful Paint i kolejność ładowania zasobów atrybutem fetchpriority w krytycznej ścieżce renderowania.

Licencja
MIT
Ostatnia zmiana repozytorium
06.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 06.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Optymalizuje Largest Contentful Paint i kolejność ładowania zasobów atrybutem fetchpriority w krytycznej ścieżce renderowania.

Oryginalny opis (EN)

Use when optimising Largest Contentful Paint (LCP), reducing render-blocking resource contention, or fine-tuning resource loading order in the critical rendering path.

Jak działa

  1. Quick Reference
  2. Check
  3. Fix
  4. Explain
  5. Code Review
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 236 słów
Podgląd SKILL.md
---
name: fetchpriority-attribute
description: "Use when optimising Largest Contentful Paint (LCP), reducing render-blocking resource contention, or fine-tuning resource loading order in the critical rendering path."
metadata:
  category: performance
  priority: medium
  difficulty: beginner
  estimatedTime: "15"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/performance/fetchpriority-attribute
---

# Use fetchpriority to hint resource loading priority

Browsers use internal heuristics to guess resource priority, but they cannot know which image is your LCP candidate. Adding fetchpriority="high" to the LCP image has been shown to reduce LCP by 5–30 % in real-world tests, directly improving Core Web Vitals scores and user-perceived load speed. The attribute costs nothing to add and is the lowest-effort high-impact performance optimisation available today.

## Quick Reference

- Add fetchpriority="high" to the LCP image to accelerate Largest Contentful Paint
- Add fetchpriority="low" to below-the-fold images that would otherwise compete with critical resources
- Use fetchpriority="high" on <link rel="preload"> for critical fonts and CSS
- Avoid marking more than one or two resources as high priority — it defeats the purpose

## Check

Check whether the LCP image or hero element has fetchpriority="high" and whether any high-priority preload links are missing the attribute.

## Fix

Add fetchpriority="high" to the LCP image element and any preloaded critical resources, and fetchpriority="low" to non-critical below-the-fold images.

## Explain

Explain how the browser's resource priority queue works and how fetchpriority hints change loading order to improve LCP.

## Code Review

Review the HTML for images above the fold. Flag the LCP candidate if it lacks fetchpriority="high", and flag any carousel or below-fold images that lack fetchpriority="low" (they compete with critical resources).

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/performance/fetchpriority-attribute
Pliki w paczce (2)
  • SKILL.md 2 KB
  • references/rule.md 6 KB

Wersje

W bazie nie ma innych skilli o nazwie fetchpriority-attribute.

Migawka bazy z 13.11.2026 · wersja paczki acf22ad49a7c (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100largest-contentful-paint
    Pomaga w audytach wolnego ładowania stron, ciężkich zasobów i opóźnień renderowania w kontekście optymalizacji Largest Contentful Paint, z weryfikacją wąskiego gardła w DevTools, Lighthouse lub danych terenowych.
  • 85debug-optimize-lcp
    Pomaga diagnozować i poprawiać Largest Contentful Paint na stronie przez narzędzia Chrome DevTools, gdy główna treść ładuje się zbyt długo.
  • 100diagnosing-lcp
    Diagnozuje problemy LCP (Largest Contentful Paint): element LCP, wąską fazę (TTFB, LOADDELAY, LOADTIME, RENDERDELAY) i wzorzec przyczyny, przy wolnych obrazach głównych i ładowaniu stron, z CoreDash MCP.
  • 90debug-optimize-lcp
    Prowadzi debugowanie i optymalizację Largest Contentful Paint przez narzędzia Chrome DevTools MCP, przy wolnym ładowaniu stron, Core Web Vitals i wolnym renderowaniu głównej treści.
  • 100first-contentful-paint
    Pomaga diagnozować wolne ładowanie stron, ciężkie zasoby i opóźnienia renderowania w kontekście First Contentful Paint, sprawdzając wąskie gardło w DevTools, Lighthouse lub danych terenowych.
  • 90core-web-vitals
    Pomaga poprawiać Core Web Vitals: LCP, INP i CLS na stronie, wraz z przyczynami wolnego ładowania i reakcji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.