TransWikia.com

Magento 2: remove all default JS for custom theme

Magento Asked by omsta on December 7, 2021

We are creating multiple websites in one magento 2 instance with a custom theme. Those websites are not supposed to be shops. They all are serving one simple page without any of magento’s functionality. They are simple one-pagers that exist for SEO purposes.

But unfortunately when I enable the require-js functionality magento keeps loading all the default JS files that hardly anybody needs or knows about.

Is there a way to clear all those files before starting from scratch? All I really need is jquery and maybe a couple more libraries but not all the shop overhead (100+ unused JS files).

Thank you.

One Answer

unfortunately current we can't remove loaded js from default inside custom theme

Answered by mrtuvn on December 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP