We are using template monster Theme Magitique Link: https://www.templatemonster.com/magetique.html We are using varnish cache as well
The product page loading time took 14 seconds in loading but after applying advance JS Bundling the loading speed was decreased to 9 seconds only There are a lot of performance issues in our product page
1.) The loading should be less what technniques should be applied done with minify css etc but after Advance JS bundling we can not minify js
2.) On going to page 2 It automatically loads products but sometime It does not and stuck in loading
any solution for this?
The main problem is Javascripts are taking a lot of time to load
I am done with the necessary steps for optimization even the Images are comming from cloufront
Help and guide is appreciated Thanks
Hello @hafsa_zulfiqar1
There are many cases which can make your site speed fast, some basics I am sharing:
1).It maybe due to disabled caching,
you can check by command :
php bin/magento cache:status
if any cache value is 0, you can enable it by :
php bin/magento cache:enable {CACHE_NAME}
2). Enable Varnish Cache. (https://www.mageplaza.com/kb/how-to-configure-full-page-cache-magento-2.html#configure-vanish-cache)
3). Follow this Store > Configuration > Catalog.
Then click on Catalog which is under the Catalog tab. In here, you will see the Storefront section.
When you have seen it, find two fields which are Use Flat Catalog Category and Use Flat Catalog Product, and change these fields to Yes.
4). Go to Store > Configuration > Advanced.
Under the Advanced tab, click Developer. In the Javascript Settings section, change the values in three fields Merge JavaScript Files, Enable JavaScript Bundling and Minify JavaScript Files to Yes. Then, change the fields Merge CSS Files and Minify CSS Files in the CSS Settings tab to Yes.
5). Main issue can be of Images Optimisation, so check that also.
6). Use Redis caching for fast database queries.
There are lots of thing you can do to increase site speed, check my above suggestions first, if still they don't help check this reference :
https://www.mageplaza.com/devdocs/speed-up-magento-2.html
One suggestion would be to first disable varnish cache and get your site performance good without it, varnish cache while great will complicate the debugging process.
You should be able to easily get sub 4 second load times without varnish cache on large stores.
You will also want to make sure you are running Magento in production mode else you will see slower than expected page speeds.
https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-mode.html
@gaurav_harsh1 wrote:
3). Follow this Store > Configuration > Catalog.
Then click on Catalog which is under the Catalog tab. In here, you will see the Storefront section.
When you have seen it, find two fields which are Use Flat Catalog Category and Use Flat Catalog Product, and change these fields to Yes.
You should really put a disclaimer when it comes to recommending Flat Catalog.
For the record, Magento no longer recommends the use of a flat catalog as a best practice as of version 2.1.x and above so I wouldn't recommend enabling it.
You can read more about it here:-
https://support.magento.com/hc/en-us/articles/360034631192