How to check JavScript merge is enabled programmatically Magento 2?

Check Javascript file Merge is enable using Magento 2 by isMergeJsFiles() from the ConfigInterface.

To Merge JavaScript files in Magento 2 via admin panel,
Go To Admin panel,
Click Stores -> Settings -> Configuration from the left sidebar.
Click on Advanced -> Select Developer Tab,
Open the JavaScript Settings section,
Choose Yes from the Merge JavaScript Files.
Click Save Config from the top right. Continue reading “How to check JavScript merge is enabled programmatically Magento 2?”

How to check file is minified (.min) programmatically Magento 2?

You can check any file is minified or not using Magento 2.
If any file contains the name with .min. like jquery.min.js or owlcarousel.min.js

If you are working on the project and some time if you need to check file is minified or not programmatically, in this case this article is useful. Continue reading “How to check file is minified (.min) programmatically Magento 2?”

How to check JS bundling enable programmatically in Magento 2?

You can Bundling Javascript from the Magento admin panel in Magento 2.

To Bundling JavaScript files in Magento 2 via admin panel,
Go To Admin panel,
Click Stores -> Settings -> Configuration from the left sidebar.
Click on Advanced from the left sidebar, Select Developer Tab,
Open the JavaScript Settings section,
Enable JavaScript Bundling to Yes,
Click on Save Config. Continue reading “How to check JS bundling enable programmatically in Magento 2?”