{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-html-resource-hints-0d7cd11c68ec","title":"Optimize HTML Resource Hints for Performance","summary":"Add preload, preconnect, and DNS-prefetch hints to HTML to improve page load speed and user experience by enabling parallel resource fetching.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-html-resource-hints-0d7cd11c68ec","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-html-resource-hints-0d7cd11c68ec","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-html-resource-hints-0d7cd11c68ec.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-html-resource-hints-0d7cd11c68ec\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the HTML is browser-facing markup, not framework abstractions. Preload critical fonts and resources early, and preconnect to third-party domains used early in the page.","instructions":"---\nname: html-resource-hints\ndescription: \"Use when reviewing templates, rendered HTML, or shared components related to Add resource hints (preload, prefetch, dns-prefetch). Validate the final browser-facing markup, not just the source framework abstraction.\"\nmetadata:\n  category: html\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"20\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/en\/rules\/html\/html-resource-hints\n---\n\n# Add resource hints (preload, prefetch, dns-prefetch)\n\nThe browser's HTML parser discovers resources sequentially \u2014 a font referenced in a CSS file won't be fetched until the CSS is parsed. Resource hints break this dependency chain, allowing the browser to start fetching critical resources in parallel with parsing. A single preload directive for a critical font can eliminate a 100\u2013300ms Flash of Invisible Text.\n\n## Quick Reference\n\n- preload forces immediate download of resources needed by the current page\n- prefetch fetches resources likely needed for the next navigation (low priority)\n- dns-prefetch resolves DNS for third-party origins in advance\n- preconnect does DNS + TCP + TLS for origins you'll connect to soon\n\n## Check\n\nLook at this HTML file for late-discovered critical resources \u2014 fonts referenced in CSS, hero images, and key scripts. Identify where preload or preconnect hints would help.\n\n## Fix\n\nAdd appropriate preload hints for critical fonts, images, and scripts. Add preconnect for third-party domains used early in the page.\n\n## Explain\n\nExplain each resource hint type (preload, prefetch, preconnect, dns-prefetch), when to use each, and the consequences of misusing them.\n\n## Code Review\n\nReview templates, server-rendered HTML, and shared components that output markup related to Add resource hints (preload, prefetch, dns-prefetch). Flag exact elements, attributes, and routes where the rendered HTML violates the rule.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/en\/rules\/html\/html-resource-hints\n","use_cases":["Speed up critical font loading by preloading CSS fonts","Reduce latency for third-party domains by preconnecting","Improve user experience by prefetching next-page resources"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/html-resource-hints\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:24:28.000000Z","updated_at":"2026-11-23T04:55:21.000000Z","seo_title":"Optimize HTML Resource Hints for Performance","seo_description":"Add preload, prefetch, and DNS-prefetch hints to HTML for faster page load speeds and better user experience.","seo_keywords":["HTML resource hints","preload HTML","prefetch HTML","DNS-prefetch HTML","preconnect HTML","optimize page load"]}}