Jump to content

Add tag "noscript" in HEAD for CSS documents ( Magento 2)


TinyElf

Recommended Posts

I need to add tag "noscript" in head. 

<head><noscript id="deferred-styles"> 

<link rel="stylesheet" type="text/css" media="all" href="http://dev.magento2.com/magento2/bar/static/frontend/Magento/xtheme/en_US/mage/css1.css"/> 

<link rel="stylesheet" type="text/css" media="all" href="http://dev.magento2.com/magento2/bar/static/frontend/Magento/xtheme/en_US/mage/css2.css"/> 

</noscript></head>  telldunkin

I have attempted with beneath xml(default_head_blocks.xml) code yet not working. 

<?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-example" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/and so on/page_configura'enter code here'tion.xsd"> 

<head> 

<noscript id="deferred-styles"> 

<css src="css/css1.css" order="1"/> 

<css src="font-marvelous/css/css2.css" order="2"/> 

</noscript> 

</head>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...