wp-includes/speculative-loading.php:124Returns the default speculation rules configuration that the value 'auto' resolves to.
array<string,function wp_get_speculation_rules_default_configuration(): array { $default_mode = 'prefetch'; $mode = wp_get_speculative_loading_override( 'WP_SPECULATIVE_LOADING_DEFAULT_MODE' ); if ( WP_Speculation_Rules::is_valid_mode( $mode ) ) { $default_mode = $mode; } $default_eagerness = 'conservative'; $eagerness = wp_get_speculative_loading_override( 'WP_SPECULATIVE_LOADING_DEFAULT_EAGERNESS' ); if ( WP_Speculation_Rules::is_valid_eagerness( $eagerness ) && // 'immediate' is a valid eagerness, but for safety WordPress does not allow it for document-level rules. 'immediate' !== $eagerness ) { $default_eagerness = $eagerness; } return array( 'mode' => $default_mode, 'eagerness' => $default_eagerness, );}Introduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.
src/wp-includes/speculative-loading.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.