Answer the question
In order to leave comments, you need to log in
How to remove unnecessary scripts and styles in magento?
Hello.
Tell me how in Magento 2.1 you can remove unnecessary scripts and styles that are automatically added to the head.
It's just that there are a lot of them and they slow down the download.
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/styles-m.css"/>
<css src="css/styles-l.css" media="screen and (min-width: 768px)"/>
<css src="css/print.css" media="print"/>
</head>
</page>
Answer the question
In order to leave comments, you need to log in
you can’t disable anything, the site will break, there is nothing superfluous, enable the cache to make it work faster
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question