Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: use preconnect over dns-prefetch #39883

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading