Snippets: How to preload theme icons woff files

Important: This is no longer required! The theme does this automatically now.

add_action( 'wp_head', function() {
	$ticons_dir = get_template_directory_uri() . '/assets/lib/ticons/fonts/';
	echo '<link rel="preload" href="' . $ticons_dir . 'ticons.woff2" as="font" type="font/woff2" crossorigin>';
	echo '<link rel="preload" href="' . $ticons_dir . 'ticons.woff" as="font" type="font/woff2" crossorigin>';
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)