Hi All,
Any one can help me to optimize speed up onestepcheckout of magento2 form 20 sec to 2-3 sec. SS attached.
My dev environment url http://35.154.238.235/~abhishek/
I have seen the website link you have shared across and coming to the direct point, here you required to do performance Optimization of whole site and to do this there are multiple steps involved. - Below i am highlighting few points.
Note : This is just suggestion based on our experiment there might be few other points which is involved in this process - but this will surely reduce your timing from 20Sec to at least 5 to 8 sec
Hope it helps
Hello @abhisekhranjan,
I have checked your website there few things missing, Please do that and also make sure below things are enable or not.
php bin/magento deploy:mode:showRun it once inside the root Magento folder.
php bin/magento deploy:mode:set production
--
If my answer is useful, please Accept as Solution & give Kudos
Hi!
I don’t recommend merging JS files. JS Bundling works way better than Merging JS files. Minifying, yes. Merge only if you don’t intend to use advanced bundling (Magento 2 built-in bundling is a mess, don’t use it).
Advanced JS Bundling is kind of tricky, you’ll need to know what are you doing. Install npm, nodejs, and require.js.
I use Magento DevTools as a Chrome extension to analyze JS. After you are done with the setup, just start recording within the extension and visit all the important pages one by one. It works well not only for Checkout, as you can see, but for other pages as well.
After you are done you’ll have on your hands a brand new build.js file. Put it into Magento root directory (or wherever you like really, I’m just used to dumping stuff into the root folder lol).
OK so. Now you need to make sure bundling and merging of JS is OFF in Admin panel.
Generate static content (php bin/magento setup:static-content:deploy). All static content will be located at /pub/static/frontend/Magento/luma/en_US/ where luma is the name of your theme and en_US is the locale of your store.
Here’s more info if you catch an exception or need other fixes. Worked great for me when I needed to speed up Magento Checkout.
We had a similar issue with our customer e-store http://mmc.support.magentoprojects.net/ . Onestepcheckout was taking roughly aroun 30-40 sec initial. We took series of steps to correct the flows using breakdown analysis . Below are the list of activites we performed to reach to the level of 5-6 sec loading time. Hope these helps you
- Swap Agreements Block (Below payment method or before place order button).
- Functionality to check newsletter checkbox by default checked.
- Edit Product on checkout.
- Manage Shipping & Billing address field.
- Change sort order of shipping & billing address field.
- Change label of shipping & billing address field.
- Change width of shipping & billing address field.
- Set default value of shipping & billing address field.
- Change required validation of shipping & billing address field.
- Change visibility of shipping & billing address field.
You can refer to the extension which is upgraded to mentioned level . https://www.magedelight.com/magento-2-extensions/one-step-checkout-magento-2.html
Hope this helps you