Jump to content

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


TinyElf
 Share

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>

Edited by TinyElf
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...