PHPackages                             collab/module-speculation-rules - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. collab/module-speculation-rules

ActiveMagento2-module[API Development](/categories/api)

collab/module-speculation-rules
===============================

Magento 2 module which adds support for Speculation Rules API for instant page loads.

1.0.0(2y ago)1010.9k↑59.5%MITPHPPHP ^8.1||^8.2||^8.3

Since May 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/collabpl/magento2-module-speculation-rules)[ Packagist](https://packagist.org/packages/collab/module-speculation-rules)[ Docs](https://github.com/collabpl/magento2-module-speculation-rules)[ RSS](/packages/collab-module-speculation-rules/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Magento 2 Speculation Rules Extension
=====================================

[](#magento-2-speculation-rules-extension)

The Collab\_SpeculationRules module allows You to lavergae the [Speculation Rules API](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API).

Configuration
-------------

[](#configuration)

You can configure the module in the admin panel under `Stores > Configuration > Collab Extensions > Speculation Rules`.

TabConfig FieldDescriptionGeneralEnabled (bool: Select)Determines if the module is enabled or not.GeneralSpec Rules (string: Textarea)JSON object defining speculation rules. If module is enabled we are prerendering following links by default:
- main menu links - top and 1st level
- links found in breadcrumbs
- product links found on category pages
- links embeded in Page Builder elements

 By default following link paths are excluded from prerender:
- */checkout*
- */customer*
- */catalogsearch*
- */wishlist*

By default You can prevent given link to be prerendered by assigning them `skip-prerender` class name. This field can be customized according to this [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/speculationrules#syntax)Why choose this extension over other solutions?
-----------------------------------------------

[](#why-choose-this-extension-over-other-solutions)

We don't believe in efficient modules which have tons of options - simple as that - modules which have multiple options, are prepared for many integrations always have some performance footprint for application. Having this in mind we are trying to provide simple, portable and independent modules which sometimes require some basic Magento 2 development skills.

Browser Support
---------------

[](#browser-support)

Module automatically detects if the browser supports Speculation Rules API. If not, the module will not be loaded.

BrowserVersionChrome109+Edge109+FirefoxNot SupportedSafariNot SupportedPageSpeed
---------

[](#pagespeed)

In order to check the PageSpeed impact of the module please refer to [Official Google Chrome Docs](https://developer.chrome.com/docs/web-platform/prerender-pages#impact).

Installation details
--------------------

[](#installation-details)

```
composer req collab/module-speculation-rules
bin/magento setup:upgrade
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

785d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/408ac0f40cb68772b4f708fe18d561f52550b856e3cac818cda09b631a51ab33?d=identicon)[collab](/maintainers/collab)

---

Top Contributors

[![jemoon](https://avatars.githubusercontent.com/u/3430741?v=4)](https://github.com/jemoon "jemoon (2 commits)")

---

Tags

magentomagento2magento 2 pagespeedspeculation rules

### Embed Badge

![Health badge](/badges/collab-module-speculation-rules/health.svg)

```
[![Health](https://phpackages.com/badges/collab-module-speculation-rules/health.svg)](https://phpackages.com/packages/collab-module-speculation-rules)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[magewirephp/magewire

A framework that makes building reactive and dynamic interfaces simple in Magento 2

2621.4M42](/packages/magewirephp-magewire)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[sehrling/elasticsuite-ghost-cleaner

Magento 2 module to delete ghost indices automatically for the Smile Elasticsuite module

17100.8k](/packages/sehrling-elasticsuite-ghost-cleaner)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
