From 11b697df03c575e0384f0a71e021afd5553443be Mon Sep 17 00:00:00 2001 From: Marius Cristea Date: Mon, 9 Sep 2019 19:12:32 +0300 Subject: [PATCH] fix: adds preconnect hint for image domain and js library domain --- inc/admin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/admin.php b/inc/admin.php index 15ff4704..a867c874 100755 --- a/inc/admin.php +++ b/inc/admin.php @@ -372,7 +372,9 @@ function daily_sync() { * @return array Altered hints array. */ public function add_dns_prefetch( $hints, $relation_type ) { - if ( 'dns-prefetch' !== $relation_type ) { + if ( 'dns-prefetch' !== $relation_type || + 'preconnect' !== $relation_type + ) { return $hints; } if ( ! $this->settings->is_connected() ) {