Uncategorized

How to do Magento 2 performance optimization ?

Magento 2 is pretty complex application. If you not configured it correctly you will found it very slow. To do performance optimization, I am adding some pointers here as follow.

  1. Font Optimization
  2. Image optimization and lazy loading
  3. CSS optimization
  4. JavaScript optimization
  5. Caching techniques
  6. Server optimization
  7. Latest version of everything
  8. Light Weight theme
  9. Production mode
  10. Database optimization
  11. Code optimization
  12. Disable non required module
  13. Latest protocol http2
  14. Using Facade pattern for chat loader

Remove magento 2 redundant modules

Magento 2 has added lot of new module and feature as compared to magento1x. It has some hidden dependencies. so, it slowdown magento 2 store. It is most common list of modules which generally do not required. You can add and remove module as per your requirement. You just need to add these modules in composer.json file and then run composer update.

"replace": {
        "magento/module-authorizenet": "*",
        "magento/module-google-adwords": "*",
        "magento/module-send-friend": "*",
        "magento/module-signifyd": "*",
        "magento/module-bundle-graph-ql": "*",
        "magento/module-catalog-graph-ql": "*",
        "magento/module-catalog-inventory-graph-ql": "*",
        "magento/module-catalog-url-rewrite-graph-ql": "*",
        "magento/module-cms-graph-ql": "*",
        "magento/module-cms-url-rewrite-graph-ql": "*",
        "magento/module-inventory-graph-ql": "*",
        "magento/module-configurable-product-graph-ql": "*",
        "magento/module-customer-graph-ql": "*",
        "magento/module-downloadable-graph-ql": "*",
        "magento/module-eav-graph-ql": "*",
        "magento/module-graph-ql": "*",
        "magento/module-grouped-product-graph-ql": "*",
        "magento/module-quote-graph-ql": "*",
        "magento/module-store-graph-ql": "*",
        "magento/module-swatches-graph-ql": "*",
        "magento/module-tax-graph-ql": "*",
        "magento/module-url-rewrite-graph-ql": "*",
        "magento/module-weee-graph-ql": "*",
        "temando/module-shipping-m2": "*",
        "dotmailer/dotmailer-magento2-extension": "*",
        "klarna/module-kp": "*",
        "klarna/module-ordermanagement": "*",
        "klarna/module-core": "*",
        "amzn/amazon-pay-sdk-php": "*",
        "amzn/amazon-pay-and-login-with-amazon-core-module": "*",
        "amzn/login-with-amazon-module": "*",
        "amzn/amazon-pay-module": "*",
        "vertex/module-tax": "*",
        "vertex/sdk": "*",
        "yotpo/magento2-module-yotpo-reviews": "*"
    },