A
A
Alexander Sharomet2016-09-28 16:41:59
PHP
Alexander Sharomet, 2016-09-28 16:41:59

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>

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
devstudent, 2016-09-28
@sharomet

you can’t disable anything, the site will break, there is nothing superfluous, enable the cache to make it work faster

M
Michael, 2016-09-28
@springimport

magento.stackexchange.com/questions/96718/how-to-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question