Changeset 59881 for trunk/src/wp-includes/speculative-loading.php
- Timestamp:
- 02/27/2025 10:12:10 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/speculative-loading.php
r59837 r59881 191 191 ), 192 192 ), 193 // Also exclude links that are explicitly marked to opt out .194 array( 195 'not' => array( 196 'selector_matches' => ".no-{$mode} ",197 ), 198 ), 199 ); 200 201 // If using 'prerender', also exclude links that opt -out of 'prefetch' because it's part of 'prerender'.193 // Also exclude links that are explicitly marked to opt out, either directly or via a parent element. 194 array( 195 'not' => array( 196 'selector_matches' => ".no-{$mode}, .no-{$mode} a", 197 ), 198 ), 199 ); 200 201 // If using 'prerender', also exclude links that opt out of 'prefetch' because it's part of 'prerender'. 202 202 if ( 'prerender' === $mode ) { 203 203 $main_rule_conditions[] = array( 204 204 'not' => array( 205 'selector_matches' => '.no-prefetch ',205 'selector_matches' => '.no-prefetch, .no-prefetch a', 206 206 ), 207 207 );
Note: See TracChangeset
for help on using the changeset viewer.