Speculative Loading icon
Developer Tools

Speculative Loading

Enables browsers to speculatively prerender or prefetch pages to achieve near-instant loads based on user interaction.

  • By WordPress Performance Team
  • v1.7.0
  • Updated

Overview

Speculative Loading describes itself as: “Enables browsers to speculatively prerender or prefetch pages to achieve near-instant loads based on user interaction.”

It is active on 60,000+ WordPress sites and rated 5.0 out of 5 by 18 users on WordPress.org. Developers can extend it through 0 actions and 2 filters, listed below.

We haven't published a hands-on review of Speculative Loading yet. Want one, or need help with it? Send us a request.

How to install Speculative Loading

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Speculative Loading” and pick the one by WordPress Performance Team.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install speculation-rules --activate

Requirements: WordPress 6.9+ · PHP 7.4+ · tested up to WordPress 7.1.4

Hooks & customisation

Speculative Loading 1.7.0 fires 0 actions and 2 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

speculation-rules — top hooks
// Filters the paths for which speculative prerendering should be disabled.
apply_filters( 'plsr_speculation_rules_href_exclude_paths', array(), $mode );

// Filters whether speculative loading should be enabled even though the site doe…
apply_filters( 'plsr_enabled_without_pretty_permalinks', false );

Browse all 2 hooks with examples →

Need Speculative Loading customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with WordPress Performance Team. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Developer Tools

See all →
WPCode icon

WPCode

1,931

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads…

3+ million installs Reviewed 96 hooks

Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code, track snippet totals and reuse code…

1+ million installs Reviewed 66 hooks

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, marketing, or chat…

600,000+ installs Reviewed

Take control of the cron events on your WordPress website or WooCommerce store with WP Crontrol.

300,000+ installs 43 hooks