---
title: "Discussion on \"Speculation Rules in Next.js: Prerendering Hard Navigations Without Breaking Analytics or CSP — Field Notes 9bfd6b\" | Hashnode"
description: "Discussion on \"Speculation Rules in Next.js: Prerendering Hard Navigations Without Breaking Analytics or CSP — Field Notes 9bfd6b\". Headline: The Speculation Rules API is a JSON block (<script type=\"speculationrules\">) that tells Chromium-based browsers to prefetch or fully prerender a likely next page before the user clicks. In a"
url: "https://hashnode.com/posts/speculation-rules-in-next-js-prerendering-hard-navigations-without-breaking-analytics-or-csp-field-notes-9bfd6b/6b0d1fc5b3f38cd4a50f8c00"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Speculation Rules in Next.js: Prerendering Hard Navigations Without Breaking Analytics or CSP — Field Notes 9bfd6b](https://engahmed.hashnode.dev/speculation-rules-in-next-js-prerendering-hard-navigations-without-breaking-analytics-or-csp-field-notes-9bfd6b?utm_source=hashnode&utm_medium=feed)

Headline: The Speculation Rules API is a JSON block (<script type="speculationrules">) that tells Chromium-based browsers to prefetch or fully prerender a likely next page before the user clicks. In a

1d ago · 9 min read · engahmed.hashnode.dev  
Read the article

## Written by

[Ahmed Mahmoud](https://hashnode.com/@ahmed-mahmoud)

@ahmed-mahmoud

  
[View profile](https://hashnode.com/@ahmed-mahmoud)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
