{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-fetchpriority-attribute-7eb3b627e421","title":"Optimize LCP with fetchpriority Attribute","summary":"Add fetchpriority=\"high\" to the Largest Contentful Paint (LCP) image or critical resources to improve Core Web Vitals scores and reduce LCP load times. The deliverable is optimized HTML with fetchpriority attributes applied to critical resources.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-fetchpriority-attribute-7eb3b627e421","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-fetchpriority-attribute-7eb3b627e421","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-fetchpriority-attribute-7eb3b627e421.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-fetchpriority-attribute-7eb3b627e421\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the LCP image or hero element is identified before adding fetchpriority=\"high\". Also, apply fetchpriority=\"low\" to non-critical below-the-fold images to avoid resource contention.","instructions":"---\nname: fetchpriority-attribute\ndescription: \"Use when optimising Largest Contentful Paint (LCP), reducing render-blocking resource contention, or fine-tuning resource loading order in the critical rendering path.\"\nmetadata:\n  category: performance\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/fetchpriority-attribute\n---\n\n# Use fetchpriority to hint resource loading priority\n\nBrowsers 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\u201330 % 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.\n\n## Quick Reference\n\n- Add fetchpriority=\"high\" to the LCP image to accelerate Largest Contentful Paint\n- Add fetchpriority=\"low\" to below-the-fold images that would otherwise compete with critical resources\n- Use fetchpriority=\"high\" on <link rel=\"preload\"> for critical fonts and CSS\n- Avoid marking more than one or two resources as high priority \u2014 it defeats the purpose\n\n## Check\n\nCheck whether the LCP image or hero element has fetchpriority=\"high\" and whether any high-priority preload links are missing the attribute.\n\n## Fix\n\nAdd fetchpriority=\"high\" to the LCP image element and any preloaded critical resources, and fetchpriority=\"low\" to non-critical below-the-fold images.\n\n## Explain\n\nExplain how the browser's resource priority queue works and how fetchpriority hints change loading order to improve LCP.\n\n## Code Review\n\nReview 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).\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/fetchpriority-attribute\n","use_cases":["Optimize LCP for a hero image on a landing page","Prioritize critical fonts and CSS for faster rendering","Reduce resource contention for above-the-fold content"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/fetchpriority-attribute\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:06:44.000000Z","updated_at":"2026-11-23T04:55:09.000000Z","seo_title":"Optimize LCP with fetchpriority Attribute","seo_description":"Improve Core Web Vitals by using fetchpriority to prioritize critical resources and reduce LCP load times.","seo_keywords":["optimize LCP","fetchpriority attribute","improve Core Web Vitals","resource prioritization","Largest Contentful Paint"]}}