---
title: "Eleventy speculation rules"
url: "https://alex.zappa.dev/projects/eleventy-plugin-speculation-rules"
description: "Add browser prefetch and prerender rules to Eleventy sites."
---

[← All projects](/projects/)

Eleventy plugin

# Eleventy speculation rules

Add browser prefetch and prerender rules to Eleventy sites.

Injects Speculation Rules markup into generated HTML with configurable URL filters and eagerness.

## My work on Eleventy speculation rules

I created this Eleventy plugin for the browser Speculation Rules API.

## How it works

Prefetch and prerender modes

Include and exclude patterns

[Visit Eleventy speculation rules ↗](https://eleventy-plugin-speculation-rules.netlify.app)[Source code ↗](https://github.com/reatlat/eleventy-plugin-speculation-rules)

More about [Alex Zappa](/about/) and my work.