# Optimize Navigation Performance with Speculation Rules

Use the Speculation Rules API to prefetch and prerender navigations, reducing INP and improving page load speed for fast user experiences. The deliverable is a JSON block targeting likely next-page links, starting with prefetch and graduating to prerender.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-speculation-rules-34436fa93d34

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-speculation-rules-34436fa93d34

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-speculation-rules-34436fa93d34.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-speculation-rules-34436fa93d34/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/speculation-rules/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-24

**Created at:** 2026-11-23T05:43:50.000000Z

**Updated at:** 2026-11-24T07:12:32.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure the site uses the Speculation Rules API or equivalent techniques for likely navigation targets. Review speculation rule selectors to avoid prerendering unrelated pages, third-party URLs, or pages with personalized/authenticated content.

### When to use it

- Optimize multi-page navigation performance for web applications
- Reduce INP on page transitions for better user experience
- Implement progressive enhancement for fast page loads

## Skill instructions

---
name: speculation-rules
description: "Use when optimising multi-page navigation performance, reducing INP on page transitions, or implementing progressive enhancement for fast page loads."
metadata:
  category: performance
  priority: low
  difficulty: intermediate
  estimatedTime: "20"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/performance/speculation-rules
---

# Use the Speculation Rules API to prefetch and prerender navigations

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/rules/performance/speculation-rules

