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)108.5k↑20%1MITPHPPHP ^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 1mo ago

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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

740d 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

8044.5M33](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[tinify/magento2

Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

4345.8k](/packages/tinify-magento2)[sehrling/elasticsuite-ghost-cleaner

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

1789.0k](/packages/sehrling-elasticsuite-ghost-cleaner)[yireo/magento2-graph-ql-rate-limiting

Magento 2 module to add rate limiting to GraphQL resources

1419.8k](/packages/yireo-magento2-graph-ql-rate-limiting)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

119.1k](/packages/opengento-module-category-import-export)

PHPackages © 2026

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