You appear to be a bot. Output may be restricted
Description
Add preconnect for Google Fonts.
Usage
$array = twentyseventeen_resource_hints( $urls, $relation_type );
Parameters
- $urls
- ( array ) required – URLs to print for resource hints.
- $relation_type
- ( string ) required – The relation type the URLs are printed.
Returns
array URLs to print for resource hints.
Source
File name: twentyseventeen/functions.php
Lines:
1 to 10 of 10
function twentyseventeen_resource_hints( $urls, $relation_type ) { if ( wp_style_is( 'twentyseventeen-fonts', 'queue' ) && 'preconnect' === $relation_type ) { $urls[] = array( 'href' => 'https://fonts.gstatic.com', 'crossorigin', ); } return $urls; }