xsLVqˬLVpr>ŬLVs>?@p@@?@ ?@ ?@Ґ =Uc@5sάLVh qFLVP t-LV =LVP ALV` ALV` <%ϬLVP`p LVp` t-LV@ =LV0P ALV ` ALV <LV GLVp tLV <ŬLV >G@8ΌG@ hC@7@h`Y@8?@eT@eT@ND@άLVh qFLVP t-LV =LVP ALV` ALV` <%ϬLVP`p LVp` t-LV@ =LV0P ALV ` ALV <LV GLVp tLV <ŬLV >G@X`G@PxhC@7@?@@@8?@ 8vH@L@8?@άLVh qFLVP t-LV =LVP ALV` ALV` <%ϬLVP`p LVp` t-LV@ =LV0P ALV ` ALV <LV GLVp tLV <ŬLV >G@ʌˌG@sˌhC@7@.8vH@L@8?@eT@eT@(άLVh qFLVP t-LV =LVP ALV` ALV` <%ϬLVP`p LVp` t-LV@ =LV0P ALV ` ALV <LV GLVp tLV <ŬLV >G@ G@0sXhC@7@eT@eT@hˌND@8?@dT@dT@άLVh qFLVP t-LV =LVP ALV` ALV` <%ϬLVP`p LVp` t-LV@ =LV0P ALV ` ALV <LV GLVp tLV <ŬLV >G@8NG@shC@7@eT@eT@ÌND@8?@dT@dT@e_prefetch( $domain ) ) { // Use dns-prefetch. return $this->dns_prefetch_link( [ 'href' => esc_url( $domain ), 1 => 'data-rocket-prefetch', ] ); } // Use preconnect by default. return $this->preconnect_link( [ 'href' => esc_url( $domain ), 1 => 'crossorigin', 2 => 'data-rocket-preconnect', ] ); } /** * Check if we need to use prefetch instead of preconnect. * * @param string $domain Domain url. * @return bool */ private function use_prefetch( $domain ) { return wpm_apply_filters_typed( 'boolean', 'rocket_preconnect_external_domains_use_prefetch', true, $domain ); } /** * Check if we can let CDN inserts resource hints or not. * * @param bool $status Current status. * * @return bool */ public function can_cdn_insert_resource_hints( $status ): bool { if ( ! $status || ! $this->context->is_allowed() ) { return $status; } $row = $this->get_current_url_row(); if ( empty( $row ) || ! $row->has_preconnect_external_domains() ) { return $status; } return false; } }