Skip to content

Commit

Permalink
fix: adds preconnect hint for image domain and js library domain
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Sep 9, 2019
1 parent e7510f6 commit 11b697d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/admin.php
Expand Up @@ -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() ) {
Expand Down

0 comments on commit 11b697d

Please sign in to comment.