kronoszx
3/18/2017 - 1:04 PM

Optimice CSS Font Load

Optimice CSS Font Load

		<link rel="stylesheet" href="/themes/transformer/css/fonts.css" type="text/css" media="none" onload="if(media!='all')media='all'">
		{if isset($css_files)}
			{foreach from=$css_files key=css_uri item=media}
				{if strpos($css_uri, "googleapis") !== false}
					<link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="none" onload="if(media!='{$media|escape:'html':'UTF-8'}')media='{$media|escape:'html':'UTF-8'}'" />
					<noscript><link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}"></noscript>
				{else}
					<link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="{$media|escape:'html':'UTF-8'}" />
				{/if}
			{/foreach}
		{/if}