1

I checked my website at google speed :

https://developers.google.com/speed/pagespeed/insights/?hl=fr&url=http%3A%2F%2Fwww.mdsoft-test.com%2FSiteSajaddav2%2FSiteSajjada%2Fhome-demo-01&tab=desktop

and i found that it is slow so how to speed my website thanks in advance

  • Hey your question is not clear to us do you want to know how to speed up your site? – Shubham Khandelwal Oct 16 '18 at 9:11
  • it'was found that my website is too slow – Developper Magento Oct 16 '18 at 9:21
2

Hello there are many ways to optimise your magento website:

  1. Enable Flat Categories and Products: One of the problems identified in the slowdown of Magento 2 sites had been the read speed of the database. If your Magento 2 store has a wide range of products, you are likely to face this problem more. To increase the read speed of your database, you should enable flat categories and products. By doing this, you can minimize the number of database joins done when it shows the products. It leads to the reduction of MySQL query complexity and your site’s performance is improved.

  2. Merge CSS and JS Files: CSS and JS files are used to make your frontend look attractive but at the same time adversely affect the speed of your site. If you are using Magento 2, fortunately you have a way to tackle this without compromising the fancy display of your site. You can merge JS and CSS files to increase the speed of your Magento 2 site. To change the settings, go to backend and select ‘configuration’ from the ‘stores’ icon, and further open the ‘developer’ tab from the ‘ADVANCED’ header. Here, you need to change the JavaScript settings to ‘Yes’ for ‘Merge JavaScript files’ and ‘Minify JavaScript files’. Similarly, go to CSS settings and opt ‘Yes’ for ‘Merge CSS files’ and ‘Minify CSS files’.

  3. Use Full Page Cache: The power of full page caching lies in its ability to store the full page output in the cache. This decreases the server load for when consequent pages are loading.

  4. Image Optimization: n ecommerce store is full of images and banners for obvious reasons. To make sure that the images aren’t affecting your site’s performance, optimize them accordingly. The images that appear on the main site should be compressed for less data usage and easy page loads. While the product images should be in JPEG format, PNG and SVG format is recommended for logo and layout of your Magento 2 site.

  5. Reduce Server Response Time

  6. Choose the right Content Delivery Network

  7. Magento Updates

    So these are some points by which you can speedup your site for more information regarding the same you can use go through following link.

| improve this answer | |
3

just check your inspect element on your browser when load the page and go the network tab and see column to get you know what files that have big size and cause your website be slow.

try to follow the google page insight recomendation :

  • you too load many fonts file on your website (there are 6 fonts), please filter only font that you used.
  • minify your css and js file that you used.
  • merge your css and js file you can do this on the backend your website.
  • optimize your image since I get .png file that have 1mb size (that size is too big for just one image)
  • for slider image you can use jpg or jpeg format that have more little size instead using png file.
  • enable gzip compression on your apache server, by follow this article

the most crutial things I think on the image and the fonts, js and css file. > 10 mb for load one page I thinks it's very not efficient.

Hope this helps

| improve this answer | |
  • what do you mean bu merge your css and js how do do that exactly please ? – Developper Magento Oct 16 '18 at 9:38
  • in the backend your website, go to menu system->configuration, select advanced tab and then on the right side you will see section javascript settings and css settings, expand and then you will see option Merge Javascript files and Merge Css files set them to Yes – mrfizh Oct 16 '18 at 9:44
0
  1. First I see in your slider, the images are so big and not optimized 1.80 Mo and so on, it's not good.

  2. It depends to your server configuration.

  3. Did you enabled the cache ?

  4. You can also merge css, js (admin config)

  5. Optimized custom code, check if you have optimized your custom code, exemple many loads, not optimized collections select, filters etc... foreach etc... .

| improve this answer | |
0

These are the steps which should be kept in mind to Optimize Performance.

Step 1: Enable Flat Categories and Products

Magento 2 has created a great influence by its ability of database loading. In the configuration, you need to enable Flat Catalog to speed up that. Flat Catalog allows offloading the number of the database once there is any request for showing the product. Parallelly, the MySQL query complexity will reduce.

Now, Go to backend,

Stores > Configuration > Catalog > Catalog > Storefront

, Choose Yes in Use Flat Catalog Category field.

Step 2: Merge CSS and JS Files In this step, you need to follow is merging and minifying CSS and Javascript files, that means making the web page as light as possible for the fast loading for that put Magento 2 into production mode.

Step 3: Content Delivery Network Content Delivery Network (CDN) is a special system that can connect all cache servers also it also supports geographical proximity by taking over the delivering web content and fasten the page loading.

Follow our guide to set up CDN for Magento 2 stores.

Go to backend,

Stores -> Configuration > General > Web > Base URLs (Secure)

Step 4: Caching In the backend go to the

System > Cache Management

He, you will find a plenty of caching options to flush your Magento 2 cache.

Click on Enable and then submit the options which you want.

Step 5: Image Optimization Image plays an important factor to make your Magento 2 store’s performance more vivid. However, uploading the heavy size image on your site is one of the crucial reasons for the overload page. So, you have to compress the image before submitting any image. Using a JPEG format for Product images, and PNG or SVG for the layout as well as the logo is the best solution.

Step 6: Enable Compression Follow below resources to enable compression by Google’s offer.

Now let’s change nginx compression directives from:

gzip_types: text/plain application/x-javascript text/javascript text/xml text/css image/x-icon image/bmp image/png image/gif; to gzip_types: *;

Step 7: Reduce Server Response Time Your site’s response time is quite good with approximately 0.5s all thanks to Magento 2 built-in cache funcationlity. But as per Google expects it is not the ideal time. Due to that, Magento 2 provides support to Full Page Cache via Varnish natively.

Now, let’s setup Varnish to get the first byte around 0.1-0.2s.

Go to backend,

Stores > Configuration > Advanced > System > Full Page Cache,

Transfer Caching Application to Varish Cache.

Open Varnish Configuration section, complete the settings:

Step 8: Magento Updates

Above are some of the major steps which can help you to speed up your website. If you are looking for more information related to increasing the speed of your website follow this link

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.