Skip to main content
Guides/Site Performance

Resource Hints: Understand and Use the Results

Find preconnect, prefetch, and preload hints

EdgeDNS Team·Updated ·5 min read

Resource hints: the preload tricks that make pages feel instant

Resource hints are a small family of signals — `<link rel="preload">`, `<link rel="prefetch">`, `<link rel="preconnect">`, `<link rel="dns-prefetch">`, and `<link rel="modulepreload">`, plus the newer `fetchpriority` attribute and the Speculation Rules API — that tell the browser to start fetching, connecting to, or resolving things earlier than it otherwise would. They are some of the smallest, easiest, highest-leverage performance improvements available, because they let you parallelize work that would otherwise happen sequentially. The browser is happy to start a DNS lookup, open a connection, or download a critical asset as soon as it can — but it doesn't always know which things will be needed. Resource hints tell it.

You should care because resource hints can knock hundreds of milliseconds off a typical page load with a handful of HTML tags and zero changes to the underlying code. The classic example is a page that has to load a font from `fonts.googleapis.com` halfway through rendering. By default, the browser doesn't know it will need that font until it parses the CSS, which means it has to do a DNS lookup, a TLS handshake, and a download — all sequentially — before the text on the page can render with the right font. With a single `<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>` in the page header, the browser starts the connection setup immediately, and by the time the CSS parser needs the font, the connection is already warm.

The hints every audit looks at:

  • `dns-prefetch` — start the DNS lookup for a hostname. Cheapest hint, useful for any third-party origin you'll talk to.

  • `preconnect` — start the full TCP and TLS handshake with a hostname. More expensive than `dns-prefetch` but a much bigger win when the connection actually gets used. `crossorigin` matters: fonts must use `crossorigin` or the browser opens a separate non-CORS connection and the preconnect is wasted. Per Chrome's official guidance, limit `preconnect` to 1–2 critical origins and use `dns-prefetch` for the rest.

  • `preload` — fetch a specific resource right now, with high priority. Useful for critical assets like fonts, hero images, and above-the-fold CSS. The `as=` attribute is mandatory — without it, browsers ignore the hint entirely.

  • `fetchpriority="high"` — the highest-leverage modern hint. Apply it to the LCP image to give the browser the strongest possible prioritization signal. Browser support is mainstream (Chrome 102+, Safari 17.2+, Firefox 132+) and the LCP impact is often 10–20%. Reserve `fetchpriority=high` for the single LCP element — multiple high-priority resources compete with each other.

  • `prefetch` — fetch a resource in the background, low priority, to be used later. Useful for the next page a user is likely to visit.

  • `modulepreload` — like `preload`, but for ES module dependencies. Useful for modern JavaScript bundles.

  • Speculation Rules API (`<script type="speculationrules">`) — the modern, JSON-based replacement for the deprecated `<link rel="prerender">`. Lets you declare "these URLs are likely-next; prerender them in the background" with conditions like document-rules and eagerness settings. Shipping in Chrome 121+ and growing.

  • 103 Early Hints — the server can send a preliminary HTTP `103 Early Hints` response with `Link:` headers for preload and preconnect before the main response is ready. Cloudflare, Vercel, Fastly, and Akamai support it. When the CDN supports it and you publish `Link:` headers, the LCP win is often 30%+.

Three questions a resource-hint audit answers:

  • Is my LCP image getting `fetchpriority="high"`, or am I leaving the single biggest LCP optimization on the table?

  • Are my font `preconnect` / `preload` hints actually using `crossorigin`, or are they silently broken?

  • Are CDN-injected `Link:` header hints lining up with what's declared in HTML — and could I unlock 103 Early Hints by moving hints into headers?

The cost of skipping resource hints is leaving easy performance wins unclaimed. The fix is a one-time pass through the HTML to add the right hints at the right places. Most modern frameworks (Next.js, Nuxt, SvelteKit) generate appropriate hints automatically for the most common cases, but the audit still catches the cases that fall through the cracks — and almost no framework adds `fetchpriority` correctly without explicit configuration. Authoritative guidance lives at web.dev's resource-hints reference.

The Resource Hints endpoint, in plain language

Find preconnect, prefetch, and preload hints

Resource hints reveal critical third-party dependencies and performance priorities. They expose which services a site relies on and provide insights into their performance optimization approach.

What is actually happening when you call it

Parses HTML (HyperText Markup Language) for link rel="preconnect", "prefetch", "preload", and "DNS-prefetch" tags. Identifies which external domains are prioritized, what resources are preloaded, and analyzes the performance optimization strategy.

Why this specific tool matters

Choose a task: Performance Analysis. Analyze resource hints to understand performance optimization strategy.

Run the Resource Hints request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Resource Hints reference to check the field definitions and supported options.

Info:

Available on the developer plan. The technical details: `GET /v1/domain/resource-hints`.

When would I actually use this?

Performance Analysis

Analyze resource hints to understand performance optimization strategy.

Use the finding: Learn from competitor performance optimizations.

Third-Party Discovery

Identify critical third-party dependencies from preconnect hints.

Use the finding: Map supply chain dependencies for security assessment.

SEO Audit

Verify resource hints are properly configured for Core Web Vitals (Google Core Web Vitals).

Use the finding: Optimize page performance for better search rankings.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use domain_resource_hints with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For Resource Hints, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This Resource Hints request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/domain/resource-hints?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for Resource Hints

Start with the inputs below. Keep the same hostname, path, and options when comparing Resource Hints observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`.

https://example.com

Interpret Resource Hints findings

Read these fields alongside the full response from your Resource Hints check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The analyzed domain (bare hostname).

url

string

Full URL (web address) that was fetched, echoing the protocol used in the request.

preconnect

array

Hrefs with preconnect hints (legacy flat form)

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

HTML (HyperText Markup Language) — The basic language web pages are written in. The tags you see in the source code (<h1>, <p>, <a>) are HTML.

Core Web Vitals (Google Core Web Vitals) — Google's official measurements of how fast and smooth your web pages feel — how quickly content appears, how long the page takes to become interactive, and how stable the layout is. Used as a search ranking signal.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

Resource Hints: Results Guide | EdgeDNS