Skip to content

Commit

Permalink
First run to use preconnect instead of dns-prefetch when it is virtua…
Browse files Browse the repository at this point in the history
…lly certain the domain will be used
  • Loading branch information
kraftbj committed Oct 23, 2024
1 parent c3e2ec5 commit 6e5acaa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions projects/packages/image-cdn/changelog/update-resource-hints
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Resource Hint: use preconnect instead of dns-prefetch
2 changes: 1 addition & 1 deletion projects/packages/image-cdn/src/class-image-cdn-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function load() {
array(
'//i0.wp.com',
),
'dns-prefetch'
'preconnect'
);

Image_CDN::instance();
Expand Down
4 changes: 4 additions & 0 deletions projects/plugins/boost/changelog/update-resource-hints
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Use preconnect instead of dns-prefetch to improve performance.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/update-resource-hints
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: enhancement

Use preconnect resource hints, instead of dns-prefetch, to improve performance
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/modules/photon-cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e5acaa

Please sign in to comment.