Skip to main content

Speculative Loading for Joomla

This extension adds the Speculation Rules API to Joomla.

The Speculation Rules API is a new web API that allows defining rules to dynamically prefetch and/or prerender URLs of certain structure based on user interaction.

Can I Use

The Speculation Rules API is fairly new, at the time of writing either Chrome 121+, Opera 109+ or Edge 121+is needed the benefits of this feature. However there are no adverse effects for users on other browsers, as this is a progressive enhancement. Therefore, using the Speculation Rules API on your website is safe regardless of the user base.

Check for the current status of the browser support on Can I Use

Warning

Be aware that prefetching will generate additional requests to your server.

Prefetching links might have undesired site effects. For example, if you have an logout link on your page a user will be logged out as soon as he hovers over the link. Or if you have 'add to shopping cart' links on a page. Then hovering a link might add an item to the cart. You can mittegate this by using a class (no-prefetch / no-prerender / no-speculation) or a relation (rel=nofollow) on links.

The best option might be to disable speculation rules for logged-in users.

Prerender should be used with caution when used with interactive elements. Including analytics scripts.