Skip to main content

Timeline for Magento 2- How remove js files

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Nov 11, 2020 at 16:45 comment added Ben Crook If you want a good page speed score you cannot use the default Magento 2 frontend, it would be quicker to build your own frontend than it would be to improve Magento
Nov 11, 2020 at 15:33 comment added Jackom But not exist an effective method for reduce js files for optimize magento 2 speed? Because with all compression, minify etc...the values of pagespeed of google are not high for mobile.
Nov 11, 2020 at 14:29 comment added Ben Crook I think you'd need to overwrite each file that has this as a dependency and remove it. If you was to simply stop loading this file then the code may error as it would then try and use something that no longer exists.
Nov 11, 2020 at 13:23 comment added Jackom Thanks for the reply and I understand what you are saying to me. Magento really has a lot of dependencies and sometimes excluding some JS files is not that simple. But the JS files I would like to remove as they are used in the backend and not in the frontend. Is there a way to just remove them from the frontend and leave them active in the backend?
Nov 11, 2020 at 12:44 history answered Ben Crook CC BY-SA 4.0