Disable Speculative Loading
Turns off the speculative prefetching of links that WordPress 6.8 adds to the front end, for sites with heavy pages or strict analytics.
Opens WPIDE on
Code
add_filter( 'wp_speculation_rules_configuration', '__return_null' );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.