How do i Include static resources (JavaScript, CSS, fonts) before in Magento 2?
i follow the docs magento 2 Include static resources (JavaScript, CSS, fonts)
i have copied the file from base theme to the extended theme
my_extended_theme_dir/Magento_Theme/layout/default_head_blocks.xml
and here is the code:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
<script id="mcjs">!function(dsds){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://some script.js"); </script>
</head>
</page>
but no changes, recreated static files, clear cache, reindex... what am i missing?