diff --git a/projects/packages/image-cdn/changelog/update-resource-hints b/projects/packages/image-cdn/changelog/update-resource-hints new file mode 100644 index 0000000000000..60d709b70c869 --- /dev/null +++ b/projects/packages/image-cdn/changelog/update-resource-hints @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Resource Hint: use preconnect instead of dns-prefetch diff --git a/projects/packages/image-cdn/src/class-image-cdn-setup.php b/projects/packages/image-cdn/src/class-image-cdn-setup.php index 859debf52475b..14a7c2fecd0cc 100644 --- a/projects/packages/image-cdn/src/class-image-cdn-setup.php +++ b/projects/packages/image-cdn/src/class-image-cdn-setup.php @@ -20,7 +20,7 @@ public static function load() { array( '//i0.wp.com', ), - 'dns-prefetch' + 'preconnect' ); Image_CDN::instance(); diff --git a/projects/plugins/boost/changelog/update-resource-hints b/projects/plugins/boost/changelog/update-resource-hints new file mode 100644 index 0000000000000..d5813b0d0dee4 --- /dev/null +++ b/projects/plugins/boost/changelog/update-resource-hints @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Use preconnect instead of dns-prefetch to improve performance. diff --git a/projects/plugins/jetpack/changelog/update-resource-hints b/projects/plugins/jetpack/changelog/update-resource-hints new file mode 100644 index 0000000000000..26bc9eaad979e --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-resource-hints @@ -0,0 +1,4 @@ +Significance: minor +Type: enhancement + +Use preconnect resource hints, instead of dns-prefetch, to improve performance diff --git a/projects/plugins/jetpack/modules/photon-cdn.php b/projects/plugins/jetpack/modules/photon-cdn.php index da92bc48e9363..9da8cb57da57d 100644 --- a/projects/plugins/jetpack/modules/photon-cdn.php +++ b/projects/plugins/jetpack/modules/photon-cdn.php @@ -18,7 +18,7 @@ $GLOBALS['concatenate_scripts'] = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -Assets::add_resource_hint( '//c0.wp.com', 'dns-prefetch' ); +Assets::add_resource_hint( '//c0.wp.com', 'preconnect' ); /** * Asset CDN module main class file.