Magento – Magento 2: Checkout page is loading very slow

checkout-pagemagento-2.1magento2

The checkout page on our Magento 2 store is loading insanely slow. Does anyone know what causes this or how to fix this?

Customers are cancelling the orders in this last step. Really frustrating.

Thanks a lot!

UPDATE:

I provided a screenshot of the chrome waterfall. As you can see, some files are queued at 8+ seconds. Some files take over 30 seconds to load.

How can we speed this up? I checked the TTFB by enabling profiling, but that didn't show any significantly slow things. Please check screenshot.

enter image description here

Best Answer

I resolved this by switching to production mode, rather than developer or default, as follows:

bin/magento deploy:mode:set production

You can check your current application mode with:

bin/magento deploy:mode:show

The application modes are explained here; in my case the speed improvement with production was the result of it bundling Knockout components. In developer mode the components are all loaded individually as in OP's example, resulting in hundreds of requests.

Related Topic