Push the limits of your Adobe Commerce store with MagePal Extension

Take your Adobe Commerce store to new heights with the power of MagePal extensions. Our expertly crafted code and rigorous testing ensure seamless integration with Adobe Commerce, giving you the freedom to focus on growing your business, not debugging. Upgrade your store's potential with MagePal.

How to Enable Merge CSS, JavaScript in Magento 2

Why merge CSS and JavaScript in Magento 2

Merging all individual CSS and JavaScript files into one single condensed file will helps optimize your site by reduce the number of requests to your server and improve your page loading time.

How to merge CSS and JavaScript in Magento 2

Magento 2 - Merge CSS and JavaScript

In Magento 2.2.x and 2.3.x
bin/magento config:set dev/css/merge_css_files 1
bin/magento cache:clean
In Magento 2.0.x and 2.1.x
UPDATE core_config_data SET value = 1 WHERE path = 'dev/css/merge_css_files';
Using n98-magerun2 for Magento 2.1.x, 2.2.x and 2.3.x
n98-magerun2.phar config:store:set dev/css/merge_css_files 1
n98-magerun2.phar cache:clean
Environment configuration
...
'js' => [
   'merge_files' => '1',
   'minify_files' => '1',
],
'css' => [
    'minify_files' => '1',
    'merge_css_files' => '1',
],
...
0

Total Downloads

11

years experience with Magento

30+

Magento / Adobe Commerce Extensions

Shop with confidence

With millions of downloads worldwide, install with confidence knowing that our extensions will just work.

Learn More About MagePal Extension

Is your Magento store ready for the future? Say hello to the new Google Analytics 4, which is built from the ground up with all-new features and advanced machine learning technology.

GA4 Extension

Related

Magento 2 Extensions

Get ahead of the competition with MagePal Magento 2 extensions - Unlock new opportunities and drive more sales.

Enhanced Transactional Emails

Get more from your order confirmation emails by promoting other complementary products.

HTML Minifier for Magento2

Minification is the process of removing all unnecessary characters and spacing from your source code without changing its functionality.

Magento Enhanced E-commerce

If your are using Magento + Google Analytics, then you need Enhanced E-commerce for Google Tag Manager.