Saltar al contenido
Skillpedia
Sitios e interfaces (frontend)75 mil · #2842

fetchpriority-attribute

Qué hace

Esta skill comprueba cómo una página indica la prioridad de carga de sus imágenes y recursos clave. Es para desarrolladores que quieren que el contenido principal de sus páginas aparezca más rápido.

Cuándo usarla

  • ✓Cuando la imagen principal de tu página tarda en cargarse.
  • ✓Cuando tu página obtiene malos resultados en Largest Contentful Paint.
  • ✓Cuando muchas imágenes compiten por cargarse en la parte superior de la página.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/fetchpriority-attribute/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes indicar al navegador que cargue primero mi imagen principal?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente encuentra la imagen más grande de la parte visible al cargar la página y sugiere una pista de prioridad alta para ella. También puede sugerir una prioridad menor para las imágenes que están más abajo.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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

Preguntas frecuentes

¿Qué hace fetchpriority?

Es un atributo HTML que indica lo importante que es un recurso, para que el navegador lo cargue en un mejor orden.

¿Cuánto puede ayudar?

La skill cita pruebas reales con mejoras de alrededor del 5 al 30 por ciento en Largest Contentful Paint.

¿Debe tener prioridad alta cada imagen?

No. La skill advierte de que marcar más de uno o dos recursos como prioridad alta anula el objetivo.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
75 mil
Posición en el ranking
#2842
Licencia
MIT
Actualizada
31/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas