packages/kirki-framework/module-webfonts/src/Embed.php
public function resource_hints( $urls, $relation_type ) {
		$fonts_to_load = $this->googlefonts->fonts;

		if ( ! empty( $fonts_to_load ) && 'preconnect' === $relation_type ) {
			$urls[] = [
				'href' => 'https://fonts.gstatic.com',
				'crossorigin',
			];
		}
		return $urls;
	}
public function resource_hints( $urls, $relation_type ) {
		$fonts_to_load = $this->googlefonts->fonts;

		if ( ! empty( $fonts_to_load ) && 'preconnect' === $relation_type ) {
			$urls[] = [
				'href' => 'https://fonts.gstatic.com',
				'crossorigin',
			];
		}
		return $urls;
	}
public function resource_hints ( $ urls , $ relation_type ) { $ fonts_to_load = $ this -> googlefonts -> fonts ; if ( ! empty ( $ fonts_to_load ) && 'preconnect' === $ relation_type ) { $ urls [ ] = [ 'href' => 'https://fonts.gstatic.com' , 'crossorigin' , ] ; } return $ urls ; }
Add preconnect for Google Fonts.

@access public
@param array  $urls           URLs to print for resource hints.
@param string $relation_type  The relation type the URLs are printed.
@return array $urls           URLs to print for resource hints.
Add preconnect for Google Fonts .