36

First determine if it's front end rendering or the actual script execution that is slow. Check with the developer console in your browser for the Time To First Byte. This is how long the script take to process on the server In the screenshot you can see it's quite low (200ms) so in this case the problem wouldn't be on the server but on front end. Now if it'...


11

Site speed optimization in Magento is very vast topic. This is one link which can help you, http://www.gxjansen.com/blog/101-ways-to-speed-up-your-magento-e-commerce-website/ Taking a gist of it, You need to concentrate on two aspects, 1. Frontend optimization 2. Backend optimization Frontend optimization You can install Fooman Speedster - http://www....


5

In Observer method $response = $observer->getEvent()->getData('response'); if (!$response) return; $html = $response->getBody(); if ($html == '') return; $conditionalJsPattern = '@(?:<script type="text/javascript"|<script)(*)</script>@msU'; preg_match_all($...


4

No. So much for Magento Gold Developer partners. I think they just don't care about PSI. Some don't care about performance benchmarks at all. Without giving out names I was approached by a client whose site was migrated to M2 from M1 by some Magento partner. They complained about poor TTFB (time to first byte). Turned out they had an extension that adds ...


4

First of all, the 'helper class' architectural pattern is more of an anti-pattern and its use is discouraged in Magento 2. If you have dependencies that may be used in some contexts, but not in others, that sounds like the class is trying to do too much. Try decomposing (i.e. Refactoring) the class into two or more new classes which have more specific ...


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 ...


3

Rub below command and then try php bin/magento cache:disable block_html php bin/magento cache:clean php bin/magento cache:flush After run above commands you not need to clean or flush cache after update the phtml files


3

Reason for Slow It is in developer mode with CSS/JS merge/bundle/minify enabled. It is running on slow hardware. Some 3rd party extension breaks performance. SSD not used. Full page cache and other caches are turned off. PS: Here is how to find out what M2 mode you are in: cd magento_main_folder php bin/magento deploy:mode:show When you are in Developer ...


3

Some important points for speeding up Magento 2:: Production Mode Full Page Cache Minify JS and CSS Check TTFB and try to reduce it Enable Flat Categories and Products Enable GZIP compression Never Use JS bundling Upgrade to latest(stable) PHP version Use Varnish Cache instead of built in Magento cache. (optional) Image optimization ...


2

Install and configure Varnish, it has massive impact on performance of the store. Varnish Cache is an open source web application accelerator (also referred to as an HTTP accelerator or caching HTTP reverse proxy). Varnish stores (or caches) files or fragments of files in memory; this enables Varnish to reduce the response time and network bandwidth ...


2

Yes, it will. Simply because of 2 reasons: Indexing is a very costly process that uses very much memory & CPU power. A large collection (10 to 100.000 products) can easily take 10-15 minutes to complete. You could even potentially start your indexer again before the first one is even completed! Cache is intended to take some load of your server. If you ...


2

Firstly you if want good magento pagespeed, the store must be set to production mode using following command; php bin/magento deploy:mode:set production Now, for caching you can use magento's default full page cache, which does work as expected for most cases but go with third-party solutions like Redis or Varnish for more performance. Installing and ...


2

There is a great answer by @Konstantin Gerasimov regarding this. You can read it here - How to optimize images in Magento or check out the same in quote. **Here are 3 approaches to image optimization for magento or any other site for that matter: 1. Command line You will need command line tools: [gifsicle][1], [jpegtran][2] and [optipng][3]. Your ...


2

Hello there are many ways to optimise your magento website: 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 ...


2

Welcome to Magento community :) Scoring 100 in Google PageSpeed Insights is not an easy thing, but still, it's possible. It's right that you take care of mobile speed above the desktop, cause mobile sales are on a certain rise at the moment. Recently I've come across the guide that shares how to score 100. I will leave the link below: https://onilab.com/...


2

I've done three main things which drastically improved my performance; although, it is still far from good enough on mobile device (page speed around 60 on four different pages). Secure enough server resources : some ideas on how to check if your server is short on resources, for unix-server Implement server side optimization such as pagespeed module ...


2

Create cms_index_index.xml at your theme layout folder. Add remove code: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <remove src="Magefan_Blog::css/blog-m.css"/> <remove ...


1

Please follow the steps to increase the page score: Make sure that js and css compressed in the backend. Check whether you have minified js and css in the backend. Use GT metrix and check what are the images are not optimized and optimized those images. Make sure that you have added gzip compression and leverage browser caching in the .htaccess file. Use ...


1

So I solved it as Peter O'Callaghan suggested in the comment to my original question. When I closed the inspector, the overall load time was around 2s which is accurate.


1

Probably this is normal time. In your case, depends from onepage extension. In onepage ext is more forms and files to load. For normal (not IT) user the most important time is DOM and general load time for give them posibilities start input data to forms. In one of my config I have +-1s of DOM load, +-2s to General load and +- 9 second to finish. But I ...


1

Let's try solutions for speed up your store below : Setup store to production model php bin/magento deploy:mode:set production Enable JS & CSS optimization Go to Stores -> “Configuration” in “Settings” Section -> “Developer” in “Advanced” Tab -> Section “JavaScript Settings” (Fields “Enable Javascript Bundling“, “Merge JavaScript Files“, “Minify ...


1

what is the maximum concurrent user/sec does magento support? https://aionhill.com/how-many-products-can-magento-handle https://www.hostingadvice.com/reviews/magento/


1

This steps is useful for improve page speed-up. Enable GZIP compression. Use Lazy Loading for images. Keep your Magento and 3rd party extensions up to date. Use sprite image instead of separate images of small icons. I hope this will useful for you.


1

This would require a deeper code trace (and probably some adjustments in block classes), but a quick tip could be... Try to avoid loading the full product object in a product list, as it happens in the second piece of code you have posted... that would free memory & make things faster If you loose some valuable content after doing that then you'd find ...


1

To load home page quickly and you want to display more than 2 widget then you should use ajax call for each and every widget for home page. For example: once the home page loaded, you should fire ajax call and render response html for particular block/widget. Please check below URL to get more idea. https://stackoverflow.com/questions/3876725/magento-...


1

An update on my situation. I managed to get my website up to an acceptable speed. I currently have 3,000 products on my website with a page speed of maybe 1-2 seconds with Varnish cache installed. I am not using the database server listed above to host the database, both is done on the current server. I have 4GB ram dedicated to the Varnish application, ...


1

I would recommend to check (even as a trial option) solutions like: NewRelic Blackfire.io xdebug Those tools will show you exact traces and timing of each separate PHP Trace that is involved within any operation/transaction (and allow you to find bottlenecks within Application / Database Flows)


1

This as a duplicate question of: Site loading speed is very slow. For the Magento htaccess, you can use our htaccess based on html5boilerplate htaccess. see below: https://gist.github.com/reillo/9030038e854ffa49d83e423415c7acf4 Magento requires server resources and if you think you have enough server resources, you can check your Magento Application ...


1

There seems to be an external script that is timing out just before body end. This seems to be a visitor tracking tool but the script just times out and agent.extrawatch.com just seems completely unavailable. Try removing below your site should speed up. <script src="https://agent.extrawatch.com/extrawatch/agent/js/?projectId=...


Only top voted, non community-wiki answers of a minimum length are eligible