Title: wp-includes/speculative-loading.php | Developer.WordPress.org

---

# File: wp-includes/speculative-loading.php

 * function[wp_get_speculation_rules_configuration()](https://developer.wordpress.org/reference/functions/wp_get_speculation_rules_configuration/)
 * Returns the speculation rules configuration.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_speculation_rules_configuration/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_get_speculation_rules_configuration/#uses)
   | Source: [wp-includes/speculative-loading.php:18](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/speculative-loading.php#L18-L91)
 * hook[wp_speculation_rules_configuration](https://developer.wordpress.org/reference/hooks/wp_speculation_rules_configuration/)
 * Filters the way that speculation rules are configured.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_speculation_rules_configuration/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_speculation_rules_configuration/#uses)
   | Source: [wp-includes/speculative-loading.php:54](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/speculative-loading.php#L54-L54)
 * function[wp_get_speculation_rules()](https://developer.wordpress.org/reference/functions/wp_get_speculation_rules/)
 * Returns the full speculation rules data based on the configuration.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_speculation_rules/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_get_speculation_rules/#uses)
   | Source: [wp-includes/speculative-loading.php:108](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/speculative-loading.php#L108-L232)
 * hook[wp_speculation_rules_href_exclude_paths](https://developer.wordpress.org/reference/hooks/wp_speculation_rules_href_exclude_paths/)
 * Filters the paths for which speculative loading should be disabled.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_speculation_rules_href_exclude_paths/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_speculation_rules_href_exclude_paths/#uses)
   | Source: [wp-includes/speculative-loading.php:154](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/speculative-loading.php#L154-L154)
 * hook[wp_load_speculation_rules](https://developer.wordpress.org/reference/hooks/wp_load_speculation_rules/)
 * Fires when speculation rules data is loaded, allowing to amend the rules.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_load_speculation_rules/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_load_speculation_rules/#uses)
   | Source: [wp-includes/speculative-loading.php:229](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/speculative-loading.php#L229-L229)
 * function[wp_print_speculation_rules()](https://developer.wordpress.org/reference/functions/wp_print_speculation_rules/)
 * Prints the speculation rules.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_print_speculation_rules/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_print_speculation_rules/#uses)
   | Source: [wp-includes/speculative-loading.php:242](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/speculative-loading.php#L242-L255)