{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-speculation-rules-34436fa93d34","title":"Optimize Navigation Performance with Speculation Rules","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-speculation-rules-34436fa93d34\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: speculation-rules\ndescription: \"Use when optimising multi-page navigation performance, reducing INP on page transitions, or implementing progressive enhancement for fast page loads.\"\nmetadata:\n  category: performance\n  priority: low\n  difficulty: intermediate\n  estimatedTime: \"20\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/speculation-rules\n---\n\n# Use the Speculation Rules API to prefetch and prerender navigations\n\nNavigation 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 \u2014 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.\n\n## Quick Reference\n\n- Use prefetch rules to load the next page's HTML ahead of time\n- Use prerender rules to fully render the next page in the background (instant navigation)\n- Scope rules with href-matches or CSS selector patterns to avoid wasting bandwidth\n- Prefer document rules (CSS selectors) over URL list rules for dynamic sites\n\n## Check\n\nCheck whether the site uses the Speculation Rules API or equivalent prefetch\/prerender techniques for likely navigation targets.\n\n## Fix\n\nAdd a Speculation Rules JSON block targeting the most likely next-page links, starting with prefetch and graduating to prerender.\n\n## Explain\n\nExplain how the Speculation Rules API differs from rel=prefetch and rel=prerender, and how prerendering achieves near-zero navigation latency.\n\n## Code Review\n\nReview speculation rule selectors for over-eagerness \u2014 flag patterns that would prerender unrelated pages, third-party URLs, or pages with personalised\/authenticated content that should not be pre-fetched.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/speculation-rules\n","use_cases":["Optimize multi-page navigation performance for web applications","Reduce INP on page transitions for better user experience","Implement progressive enhancement for fast page loads"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/speculation-rules\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:43:50.000000Z","updated_at":"2026-11-24T07:12:32.000000Z","seo_title":"Optimize Navigation Performance with Speculation Rules","seo_description":"Improve page load speed and reduce INP by using the Speculation Rules API to prefetch and prerender navigations for faster user experiences.","seo_keywords":["navigation performance optimization","Speculation Rules API","reduce INP","prerender navigation","prefetch next page"]}}