Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Speculative Loading

68 sites Security covered
View on drupal.org

This module improves website navigation speed by intelligently preloading pages users are likely to visit next. It uses the Speculation Rules API to either prefetch or prerender pages, offering near-instant loading experiences with configurable settings and no complex setup.

This module is part of the DXPR ecosystem and included in DXPR CMS.

Speculative Loading enables browsers to preload pages users are likely to visit next, creating near-instant navigation experiences on your Drupal site. By intelligently prefetching or prerendering pages based on user interactions, this module dramatically improves perceived performance without requiring complex technical setup.

You need Speculative Loading if

  • You want to improve your site's perceived performance and navigation speed
  • You need near-instant page loading without complex technical setup

Features

- Implements the modern Speculation Rules API to improve website performance
- Supports both prefetch (lightweight) and prerender (full-page) modes
- Configurable eagerness levels (Conservative, Moderate, or Eager) to balance performance and resource usage
- No-code required: works automatically on standard Drupal frontend pages
- "No-prerender" CSS class can be added to exclude specific links
- Hook API allows programmatic exclusion of URL patterns
- Plugin system for extending functionality with custom rules

Post-Installation

After installing the module, it works immediately with default settings. To customize:

1. Navigate to "Configuration" > "Development" > "Performance" > "Speculative Loading"
2. Choose between "Prefetch" or "Prerender" mode (prerendering provides faster experiences but may affect interactive content)
3. Select your preferred eagerness level
4. Save your configuration

No additional setup is required as the module automatically adds the necessary markup to your pages.

While not required, the following modules complement Speculative Loading:
- BigPipe: For progressive page rendering

Supporting this Module

This module is maintained by DXPR. If you find it valuable, consider checking out our free page builder (with paid features for large websites):
- https://www.drupal.org/project/dxpr_builder

Community Documentation

- Speculation Rules API on MDN
- Chrome's documentation on prerendering

Browser Support

The Speculation Rules API is supported in modern Chromium-based browsers (Chrome, Edge, Opera). Other browsers will gracefully ignore the functionality with no negative effects.

Wider browser support is underway: Firefox is actively working on implementing the Speculation Rules API. You can track their progress here: Firefox Bug #1969396

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Apr 2025
Latest release
3 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
1.0.0-beta2 Pre-release 10–11 May 15, 2026
1.0.0-beta1 Pre-release 10–11 Apr 17, 2025