Shopware Plugin for Speculation Rules API

What the is heck is Speculation Rules API?

The Speculation Rules API is a web platform feature that enhances web performance by allowing developers to provide hints to the browser about potential navigations or fetches. This API enables browsers to anticipate user actions and load resources proactively, thereby reducing perceived load times and enhancing the web experience.

This plugin lets you preload and pre-render your common shop pages, such as categories, registration, and shopping carts. When users click on these pages, they'll load instantly, enhancing the customer experience.

To begin, simply add the data attribute "data-prerender="true" to your most common pages and then install and activate the plugin. No further configuration is necessary.

How do I know the plugin is working?

Open DevTools in Chrome or Edge and select the application tab. In the right navigation, you'll see "speculative loads." Open it and reload the page. You'll see which pages are preloaded.

If the plugin isn't working, or you need support, email us at info at thisDomain dot de.

Shopware Spekulation Rules API Plugin