Pular para o conteúdo
Skillpedia
Sites e telas (frontend)75 mil · #2842

fetchpriority-attribute

O que ela faz

Esta skill verifica como uma página indica a prioridade de carregamento das suas imagens e recursos principais. É para desenvolvedores que querem que o conteúdo principal das páginas apareça mais rápido.

Quando usar

  • ✓Quando a imagem principal da sua página carrega devagar.
  • ✓Quando sua página tem uma nota ruim em Largest Contentful Paint.
  • ✓Quando muitas imagens disputam o carregamento no topo da página.

Link da skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/fetchpriority-attribute/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/fetchpriority-attribute/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode dizer ao navegador para carregar primeiro a imagem principal da minha página?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente encontra a maior imagem acima da dobra e sugere uma dica de prioridade alta para ela. Ele também pode sugerir prioridade menor para imagens mais abaixo na página.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

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

Perguntas frequentes

O que o fetchpriority faz?

É um atributo HTML que indica o quanto um recurso é importante, para que o navegador possa carregá-lo em uma ordem melhor.

Quanto ele pode ajudar?

A skill cita testes reais com ganhos de cerca de 5 a 30 por cento em Largest Contentful Paint.

Toda imagem deve ter prioridade alta?

Não. A skill alerta que marcar mais de um ou dois recursos como prioridade alta anula o objetivo.

Detalhes

Descrição original do autor

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

repo: thedaviddias/Front-End-Checklist

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#2842
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas