How to Optimize Resource Files in Magento 2

In this article we’ll show you, how to Optimize Resource Files in Magento 2. Follow this simple guideline…

Step 1: Get Started

Login into Magento Admin Panel and from sidebar go to, Store > Settings > Configuration.

How to Optimizing Resource Files in Magento 2

Step 2: Optimizing Resource Files

Now from sidebar, Go to Advanced > Developer.

How to Optimizing Resource Files in Magento 2

To optimize CSS files, Expand CSS Settings section.

How to Optimizing Resource Files in Magento 2

Then, do the following.

  • Merge CSS Files: Set to Yes.
  • Minify CSS Files: Set to Yes.

How to Optimizing Resource Files in Magento 2

To optimize JavaScript files, Expand JavaScript Settings section. Then, do the following.

  • Merge JavaScript Files: Set to Yes.
  • Minify JavaScript Files: Set to Yes.

How to Optimizing Resource Files in Magento 2

To optimize PHTML files, Expand Template Settings section. Then, do the following.

  • Minify HTML: Set to Yes.

How to Optimizing Resource Files in Magento 2

When complete, click on Save Config button.

How to Optimizing Resource Files in Magento 2

Yeah Done! This way you can Optimize Resource Files in Magento 2. Let us know in the comment section below if you have any question. We are happy 🙂 to help you!

1 Comment

  1. Thank you for your informative post. Great job!

Leave a Reply

Your email address will not be published. Required fields are marked *