WordPress 6.8 Speculative Loading: Speed Gains, Risks & Best Settings | ThriveWP

9th December 2025

WordPress speculative loading illustration showing predictive page loading.

WordPress 6.8 Speculative Loading: What It Is and Why It Matters

WordPress 6.8 introduced one of the most impactful front-end performance features in years: Speculative Loading.

This new system predicts which link a user is likely to click next and preloads that page in the background. The result is dramatically faster navigation — especially noticeable on brochure sites, blogs, documentation sites and smaller e-commerce shops.

But it’s not without risks.

In this guide, you’ll learn how Speculative Loading works, the real-world gains we’re seeing, where it can go wrong, and how we configure it safely for clients.


How Speculative Loading Works

Speculative Loading uses “prediction rules” to determine which internal links a user is most likely to navigate to. WordPress then:

  • Prefetches assets
  • Preconnects to resources
  • Preloads key content

This makes the next page appear almost instant.

Where It Helps Most

  • Blog navigation
  • Menu-driven websites
  • Step-by-step content funnels
  • Product catalogue browsing
  • Multi-page service sites

If your users click between pages often, the difference is noticeable.


Performance Gains You Can Expect

From early testing on multiple client sites, we’ve seen:

  • 15–40% faster perceived navigation
  • Smoother transitions between posts and pages
  • Better INP scores thanks to reduced main-thread blocking
  • Less waiting time on mobile

For sites that rely on organic search traffic, these improvements can help boost both SEO and user engagement.


The Real Risks You Need to Know About

Speculative Loading is powerful — but not plug-and-play. Without proper configuration, it can cause issues:

1. Prefetching the Wrong URLs

WordPress might preload:

  • Checkout pages
  • Login or account pages
  • Dynamic endpoints
  • Query-based searches
  • WooCommerce actions

This creates unnecessary server load and potential logic issues.

2. Wasted Server Resources

Preloading multiple “possible” pages increases bandwidth and CPU usage, especially on lower-tier hosting.

3. Breaks on Custom or Legacy Themes

Older themes or page builders with JS-heavy navigation may conflict with preloading.

4. WooCommerce Risks

You should always exclude:

  • /cart/
  • /checkout/
  • /my-account/
  • Any URL with ?add-to-cart=

Otherwise, preloading may trigger unwanted actions or expose cached data.


How to Configure Speculative Loading Safely

WordPress offers powerful filters to fine-tune or restrict the behaviour.

1. Exclude Sensitive Paths

Example code:

function thrivewp_exclude_speculation_paths( $paths ) {
    $paths[] = '/cart';
    $paths[] = '/checkout';
    $paths[] = '/my-account';
    $paths[] = '/wp-admin';
    return $paths;
}
add_filter( 'wp_speculation_rules_href_exclude_paths', 'thrivewp_exclude_speculation_paths' );

2. Exclude Query Strings

Avoid preloading search results or Ajax endpoints:

add_filter( 'wp_speculation_rules_href_exclude_query_strings', function( $strings ) {
    $strings[] = 's';
    $strings[] = 'action';
    return $strings;
});

3. Use a Staging Site to Test

Check for:

  • Unexpected server spikes
  • Cart behaviour
  • Login/logout flow
  • Third-party scripts (analytics, pixel events)

4. Pair With Good Caching

Speculative Loading performs best when combined with:

  • Full-page caching
  • Object caching
  • CDN-level optimisation

Is Speculative Loading Right for Every Site?

Ideal for:

  • Blogs and content sites
  • Agencies, portfolios, small business sites
  • Faster navigation between pages

Not ideal for (without fine-tuning):

  • WooCommerce stores
  • Membership systems
  • LMS platforms
  • Sites with many dynamic endpoints

If your site heavily depends on dynamic pages, you must configure exclusions.


Making Speculative Loading Work for Your Site

WordPress 6.8’s Speculative Loading is a major step toward a faster, more fluid browsing experience. When configured correctly, it delivers tangible speed gains that benefit UX, SEO and conversions.

When misconfigured, it can cause real trouble — which is why a tailored setup matters.

At ThriveWP, we configure and test Speculative Loading as part of our maintenance and performance packages, ensuring every client gets the speed benefits without the risks.

If you’d like help enabling it safely, we can do the heavy lifting for you.

Need help with WordPress?

Start a care plan
wordpress developers

Gavin Pedley

Gavin is the guy behind the award-winning ThriveWP. He has over 18 years of experience creating, developing, hosting and managing WordPress websites.

Gavin regularly shares his expertise via the ThriveWP blog and Youtube channel, where he creates informative and helpful WordPress tutorial videos.

Connect with Gavin on FacebookLinkedin or Twitter.

Share this article

Subscribe to receive articles right in your inbox

Get Your Free Guide On Keeping Your WordPress Website Safe

Subscribe to learn how to keep your WordPress website safe, starting with this free guide. Unsubscribe with one click at any time.

We hate SPAM and promise to keep your email address safe. Here’s our privacy policy.

SEND ME MY FREE EBOOKS!​

Three amazing products that will enhance your website performance, ranking and maximise your income! Our eBook offer includes three eBooks in one bundle.

We hate SPAM and promise to keep your email address safe. Here’s our privacy policy.