The speed of your website has a significant impact on your visitors’ decision whether or not to stay and browse your store. Please bear in mind that TIME is MONEY. While your e-commerce page is slowly loading, your “potential customers” can even add thousands of items to their cart on your competitors’ sites. This blog will instruct both admins and developers on how to optimize a Magento e-commerce page.
View more details: optimize 2 Magento e-commerce page
OUTLINE
Part 1: How Site Administrators Can Optimize a Magento E-commerce Page
View more details: optimize 2 Magento e-commerce page
OUTLINE
Part 1: How Site Administrators Can Optimize a Magento E-commerce Page
- Enable flat category and flat product for the indexing process
- Should not use bundling js
- Merge/Minify Magento JavaScript and CSS
- Use cache to speed up
- Optimize your image
- Use Full page cache by Varnish
- Follow Magento dev docs
- Use Varnish cache instead of the others
- Replace Magento’s constructor injection pattern with Proxy
- Use Repository instead of Model
- Declare registry to use model anywhere
- Use CollectionFactory instead of model→load()
- Use →setPageSize() to limit number When using CollectionFactory
- $collection→getSize() is better than count($collection)
- Enable profiler
- Use Less instead of CSS
- Never use cacheable=“false”
- Use httpContext to avoid saving cache
- Use flat structure