Filters
lh_jumpstart_return_ignore_exact_urls(array of full URLs, default empty): URLs never prefetched or prerendered.lh_jumpstart_return_ignore_prefix_urls(array of full URL prefixes): any URL starting with one of these is skipped. Defaults toadmin_url()and, for a logged-in member when BuddyPress is active, their own profile URL (bp_loggedin_user_url(), orbp_loggedin_user_domain()before BuddyPress 12).lh_jumpstart_return_logged_in_configuration(array withmodeandeagerness, defaultprefetchandmoderate): the speculation rules configuration used for logged-in users. Returnnullto leave speculative loading off for them, as core does.
Both URL lists apply to the native rules and the fallback script. For the native rules, each URL on this site is converted to a path relative to home (URL Pattern special characters escaped) and passed to core; URLs on other hosts are dropped.
Core hooks used
wp_speculation_rules_configuration(WordPress 6.8+): for logged-out visitors setsmodetoprerenderandeagernesstoeager. Core passesnullfor logged-in users; with pretty permalinks the plugin replaces it with the logged-in configuration above. Without pretty permalinksnullis left alone and the fallback script takes over. Core keeps onlymodeandeagernessfrom this filter, so exclusions cannot be set here.wp_speculation_rules_href_exclude_paths: adds the converted ignore paths (prefix entries with a trailing*) and/*nonce*. These are added to core’s own fixed exclusions, which already cover/wp-*.php,/wp-admin/*, the content directories, and, with pretty permalinks, every URL with a query string (and so every_wpnoncelink).wp_enqueue_scripts: enqueuesassets/scripts/lh-jumpstart.js(deferred, idlh_jumpstart-script, with the URL lists asdata-ignore_exactanddata-ignore_prefixattributes) on front-end requests only, not in admin, AJAX, JSON, XML-RPC, cron or robots.txt requests.