Use the Speculation Rules API to prefetch and prerender navigations

SkillDev tools

Speculation-rules is a skill that guides an AI agent in making website pages load faster by prefetching likely next pages before users click. It covers optimising multi-page navigation performance, reducing INP on page transitions, and implementing progressive enhancement for fast page loads.

Use Use the Speculation Rules API to prefetch and prerender navigations in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Use the Speculation Rules API to prefetch and prerender navigations and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Use the Speculation Rules API to prefetch and prerender navigations skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Have a multi-page website whose navigation performance you want to improve.

Use the Speculation Rules API to prefetch and prerender navigationsStart free

What your AI can do with it

  • Guides prefetching of likely next pages before users click
  • Helps optimise multi-page navigation performance
  • Reduces INP on page transitions
  • Implements progressive enhancement for fast page loads

Getting started

  1. Have a multi-page website whose navigation performance you want to improve.
  2. Add the speculation-rules skill to your agent's available skills.
  3. Ask the agent to prefetch likely next pages or reduce INP on page transitions.
  4. Apply the agent's guidance to implement progressive enhancement for faster page loads.

What this skill tells your AI

The instructions your AI receives, as published by thedaviddias/front-end-checklist in skills/speculation-rules/SKILL.md and read by ahel’s review.

Navigation latency is one of the biggest contributors to poor Interaction to Next Paint (INP) and overall perceived performance. Prerendering the most likely next page eliminates all network and rendering latency — the user sees the new page in under 100 ms regardless of server response time. Google Search has used this API to deliver its "instant" results page experience.

Quick Reference

  • Use prefetch rules to load the next page's HTML ahead of time
  • Use prerender rules to fully render the next page in the background (instant navigation)
  • Scope rules with href-matches or CSS selector patterns to avoid wasting bandwidth
  • Prefer document rules (CSS selectors) over URL list rules for dynamic sites

Check

Check whether the site uses the Speculation Rules API or equivalent prefetch/prerender techniques for likely navigation targets.

Fix

Add a Speculation Rules JSON block targeting the most likely next-page links, starting with prefetch and graduating to prerender.

Explain

Explain how the Speculation Rules API differs from rel=prefetch and rel=prerender, and how prerendering achieves near-zero navigation latency.

Code Review

Review speculation rule selectors for over-eagerness — flag patterns that would prerender unrelated pages, third-party URLs, or pages with personalised/authenticated content that should not be pre-fetched.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/en/rules/performance/speculation-rules

Signals

GitHub stars
74k
Forks
7k
Last commit
Oct 2026

Questions

When should this skill be used?
Use it when optimising multi-page navigation performance, reducing INP on page transitions, or implementing progressive enhancement for fast page loads.
What does the skill do for page loads?
It guides the agent in making website pages load faster by prefetching likely next pages before users click.
Does it work with single-page applications?
The skill is described for multi-page navigation performance; nothing else about app types is specified.
Advanced
Item type
skill
Key
speculation-rules
Source
github.com/thedaviddias/front-end-checklist