Welcome to PotatoCommerce - Magento Extensions Store

Performance Optimization Tool for Magento 2


Magento 2 Speed Optimization extension makes your Magento faster. Improve your Google PageSpeed score with Performance Optimization Tool for Magento 2

  • Adapted for Google PageSpeed
  • Adapted for GTmetrix
  • Adapted for Pingdom
  • Minify HTML, CSS and JS files
  • Defer parsing of Javascript
  • Merge CSS and Javascript
  • Lazy load images

The only solution to optimize JS and CSS files for Magento 2. Improve your Google PageSpeed score.

6 screenshots: click to zoom
  • Performance Optimization Tool for Magento 2 - Speed up your Magento 2 store!
  • Magento 2 Javascript optimization
  • Magento 2 CSS optimization
  • Merge of image files
  • Other features of our Performance Optimization Tool
  • Page loading speed affects bounce rate

* Required Fields

  • 60-day money-back period
  • free updates
  • free bugfixes
  • free technical support

How to speed up Magento 2 store in just one simple step?
It’s possible with the Performance Optimization Tool.
Install the extension and enjoy the result!

Slow sites are a pain point of each Magento merchant. They not only irritate your store visitors, but also impacts SERP position of your store. The slower the site is, the harder to compete with other websites in the search engine results.

A great number of recent studies reveal that the conversion rate sharply drops inversely proportional to the increase in page speed load time. As a result, the website has less Internet traffic which also does not get converted into sales.

Without any doubts, stores which are able to deliver their content faster without frictionless experiences will surely reap the benefits.

Magento low speed

PotatoCommerce is GTmetrix official partner
for Magento performance optimization.
Learn More →

How to speed up Magento 2?

Even if you are using Full Page Cache or Varnish on your store, it's not enough to improve Magento 2 performance. Every split second helps win the battle with your store performance.

Let’s dig into some technical moments: by default, Magento 2 store makes more than 170 requests to javascript, fonts, stylesheets and image files to a server. Such a request consists of sending a request from browser to a server, request processing and delivering a server response from server to a browser Default Magento 2 installation has more than 70 javascript requests, not to mention Magento 2 store which has a custom theme and dozens of modules installed. Here is a short animated image to bring your attention.

The Solution

This JS/CSS Compressor Magento 2 extension allows improving a store performance through optimization of Javascript, CSS and HTML content.

Javascript Optimization in Magento 2

Native Magento 2 merging functionality is not working as you may expect. For example, only 3 basic Javascript files will be merged on a Magento 2 store with a default Luna theme. However, more than 120 JS files of the theme and modules will be left untouched.

Performance Optimization Tool extension for Magento 2 will merge all the files which are used by a page and located on your server. Additionally, as a nice bonus, you will get loadable HTML files merged as well. Performance Optimization Tool extension for Magento 2 optimizes js files and therefore, speeds up your Magento 2 store.

Magento 2 javascript optimization

Defer parsing of Javascript in Magento 2

Google PageSpeed service recommends loading of JS files to be deferred till the end of a page rendering and generally, not all the scripts are needed to render a web page correctly. Thus, our Performance Optimization Tool for Magento 2 allows moving JS files to the end of the HTML body. In other words, it fixes render-blocking issue.

Merge of Javascript in Magento 2

This is not a secret that merging of JS files will definitely reduce the number of requests to a server. Besides, these merged files can also be cached by a browser, which surely stops a browser from loading one file several times. Performance Optimization Tool merges not only JS files, but also inline scripts.

Minify Javascript in Magento 2.

Performance Optimization Tool allows minifying Javascript which means that all space symbols, line breaks, tabulation and comments will be eliminated, as a browser does not need them to recognize the code. The compressed file will obviously have a smaller size and load faster.

Other Features

CSS optimization in Magento 2

Besides JS files, Performance Optimization Tool for Magento 2 supports merging and minification functionality for stylesheets, inline small CSS and provides Defer parsing of CSS as well. However, we’d not recommend to use Defer parsing of CSS, as practice shows that it may affect user experience negatively.

Exclude specific scripts and stylesheets

Our Performance Optimization Tool for M2 allows excluding necessary scripts and stylesheets from compression if needed. Some files, for example, like Google Analytics scripts may be processed improperly when merged or moved to the end of the page. More information can be found in the user guide.

Merge of image files

One of the most amazing features which will definitely attract your attention even more is merging of image files. It uses only single request from a browser to a server to load all image files, which results in dramatically decreased number of all requests to a server.

Lazy load images in Magento 2

The Lazy Load technology provides the possibility to hold over image loading till a user scrolls to a certain image on a page. You know that it is impossible to images a store without images, and sometimes more than 50 % of the page content are images, that’s why Lazy Load works better for long webpages, for example, such as Magento 2 category pages.

Performance Results

Dependance between conversion rate and website loading speed

Performance report for Magento 2 default theme (‘Luma’)

As you can see on the image, page load and size are almost halved, and the number of request get in 10 times lower.

Improve Your GTmetrix Score

You may also be interested in our Image Optimizer M2 extension which significantly reduces the size of JPG, PNG and GIF image files. This extension is a trustworthy solution which can work in both automatic and manual mode and, besides, provides log files and backups.


of users want web pages to load in two seconds, or faster


feel irritated or even leave the page if the page is loaded for more than 3 seconds


of online shoppers admitted that they are unlikely to return to a slow online store


of visitors noted that fast websites are more likely to increase their loyalty


Customer satisfaction is decreased by this percentage value with each additional second of page load.


44% of users share their experience of using websites with friends.

Why choose PotatoCommerce headline
Why choose Potatocommerce left
Why choose Potatocommerce right
5 Reviews

Average rating

Awesome services

Posted by Vincent on Aug 21, 2019
Very professional team, answering all my questions and made my website faster.
Thank you very much for everything, worth the price !

This is a must extension for Magento 2

Posted by Slava on Feb 14, 2019
We are using this extension with LiteMage Cache. The website performance is great! This is a must investment for your store. The support team is there always for you. They answered all of our concerns and fixed all the issues that we had!

Best Extension and Support I have ever had

Posted by Alberto Medina Ortiz on Apr 9, 2018
This is the best support and extensions I have ever had ... The performance in GTMetrix has improved from 45% to 95% ... They have done their job very fast ... Really professionals ... I highly recommend Potatocommerce and all their extensions.

Alberto Medina

Excellent extension to make websites load faster

Posted by Edward on Mar 27, 2018
Potato Commerce was extremely helpful throughout the entire process. They answered questions prior to our purchase, installed our extension, and were quick to respond to any post inquiries about the performance extension. Thank you!

Best magento 2 performance extension

Posted by Dan V. on Dec 28, 2017
Well, this compressor extnsion is awesome! My website works fast now, and google pagespeed is 96%. It is working out of the box, no issues found yet. Our store was fast and stable even during black friday and christmas sales when traffic was is very high.
Take a bow, guys!

Write Your Own Review

Only registered users can write reviews. Please, log in or register



Magento CE2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x
Magento EE2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x
Compatible BrowsersChrome, Safari, Firefox, Opera, IE8+

Installation Steps

  1. Download the extension from the account on our store
  2. Extract the folder and copy it to the root directory of Magento 2 store
  3. Specify the path in the command line:
    bin/magento setup:upgrade
  4. If you use Magento 2.1.х, then it is required to restart Magento compile command by using:
    bin/magento setup:static-content:deploy
  5. Make sure cron is installed and configured correctly. Cron setup guide can be found here.


How do I exclude specific scripts or css files from being deferred, compressed and minified?

To add an exception just add "data-po-cmp-ignore" attribute this way: <script type="text/javascript" data-po-cmp-ignore>. It will force Compressor to ignore this script.

You can also use flags data-po-cmp-ignore-move, data-po-cmp-ignore-merge and data-po-cmp-ignore-minify:
data-po-cmp-ignore-move ignores only merge and defer (it does not allow to move the node).
data-po-cmp-ignore-merge does not allow to merge files.
data-po-cmp-ignore-minify does not allow to compress content.

There is also a textarea added to the extension settings, which works the same was as data-po-cmp-ignore flag does - it does not allow to optimze nodes. Strings which are added to the textarea, are being searched within URLs of scripts/styles, or in content if the nodes are inline (<script>...</script>, <style>...</style>).

How can I test my store performance? Can I check that your extension actually works?

We recommend using GTMetrix service to test website performance.

Should I disable native Magento CSS and JS merge at System > Configuration > Developer?

Yes, we recommend to disable native CSS and JS merge. We don't expect any conflicts here, but native merge can slightly slow down the work of our extension. You can disable native merge of files at System > Configuration > Developer.

I need to edit a CSS/JS file. Which file should I edit - original file or merged and compessed file?

You need to edit original files at 'skin' folder. Do not forget to flush JS/CSS cache after all your changes of CSS files: System > Cache Management > 'Flush JavaScript/CSS Cache' button.
If you use our Full Page Cache extension, then you would need to flush cache of Full Page Cache extension as well.


1.5.1 Released on 20 October 2021
* bugfixes


1.5.0 Released on 23 December 2019
+ ability to specify CSS selectors for ignore some images by lazy load
+ ability to speed up default product galerry
* incorrect work if few "body" end tags in document
* JShrink fix
* fix for "undefined requirejs" error
* composer dependencies changed
* unexpected magento native optimization functions disabling
* small bugfixes


1.4.0 Released on 23 December 2019
+ AMP compatibility added
+ lazy load of images has been improved
+ ability to disable module on specific page added
+ Magento Commerce Cloud support added
+ LiteSpeed FPC compatibility added
+ identical image content fix added
* cache overflow issue
* issue on installation via composer
* small bugfixes


1.3.0 Released on 11 February 2019
+ ability to exclude js file from merging
+ support blackquotes in minify js
* fixes with Varnish support
* small bugfixes


1.2.0 Released on 28 September 2018
+ Disable excess Magento features automatically
+ Module cache management was introduced
+ Varnish support was improved
+ Ability to fix "Serve resources from a consistent URL" issue
+ Javascript merge was improved
* Some issues related to HTTPS were fixed
* Small bugfixes


1.1.0 Released on 05 February 2018
+ Disable excess magento features automatically
+ Notification about incorrect installation
+ Ability to lazy load images by page scroll
* Fixed an issue with incorrect work of exclude setting
* Fixed incompatibility with fotorama.js
* Fixed some php notice
* Fixed issue which sometimes was causing incorrect work with CDN


1.0.3 Released on 03 January 2018
+ magento 2.2.0 compatibility
+ css sprite images
+ css inline fonts
* multistore support


1.0.2 Released on 26 October 2017
+ Image merge improved
* fix some issues with CDN usage


1.0.1 Released on 06 October 2017
* di compile error fix


1.0.0 Released on 26 September 2017
Initial Release


We Recommend
Image Optimizer for Magento 2

Optimize images on your Magento 2 store automatically. Image Optimizer Magento 2 extension is an essential solution that compresses images and photos on your store.

You may also be interested in the following product(s)