html-resource-hints

Installation
SKILL.md

Add resource hints (preload, prefetch, dns-prefetch)

The browser's HTML parser discovers resources sequentially — 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–300ms Flash of Invisible Text.

Quick Reference

  • preload forces immediate download of resources needed by the current page
  • prefetch fetches resources likely needed for the next navigation (low priority)
  • dns-prefetch resolves DNS for third-party origins in advance
  • preconnect does DNS + TCP + TLS for origins you'll connect to soon

Check

Look at this HTML file for late-discovered critical resources — fonts referenced in CSS, hero images, and key scripts. Identify where preload or preconnect hints would help.

Fix

Add appropriate preload hints for critical fonts, images, and scripts. Add preconnect for third-party domains used early in the page.

Installs
2
GitHub Stars
73.0K
First Seen
10 days ago
html-resource-hints — thedaviddias/front-end-checklist