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'...
Site speed optimization in Magento is very vast topic.
This is one link which can help you,
Taking a gist of it,
You need to concentrate on two aspects,
1. Frontend optimization
2. Backend optimization
You can install Fooman Speedster - http://www....
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 ...
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 ...
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 ...
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
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:
php bin/magento deploy:mode:show
When you are in Developer ...
Some important points for speeding up Magento 2::
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)
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 ...
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 ...
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 ...
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], [jpegtran] and [optipng]. Your ...
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 ...
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:
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
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.
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 ...
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
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.
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 ...
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.
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, ...
I would recommend to check (even as a trial option) solutions like:
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)
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:
Magento requires server resources and if you think you have enough server resources, you can check your Magento Application ...
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.