Magento 2 is the most popular eCommerce platform in the world with many advanced features. These features and flexibility take a toll on your M2 store speed. Thus, there’s a direct need to speed up Magento 2.
We strongly recommend every Magento users to migrate to Magento 2, today!
Slow Speed can Hurt your Business
The lazy speed of your site can impact your sales metrics negatively, and also harm your conversions. According to Retail TouchPoints, a 0.1-second delay in your site can hurt 7% conversions! ALERT!!
If your store runs slow, both you and your customers won’t like it.
Your customers are your top priority. They love your store because of its speed and performance. You can’t afford to disappoint them.
So, to help you out, we have accumulated some super cool tips. Coming straight from our experts, these tips will surely help you speed up your Magento 2 store.
But before we move on, you must know, why it’s so important to optimize Magento 2 store?
- Optimized (light-weighted) pages impact click metrics positively.
- Your competitors are also Optimizing
- If your store is running slow, your customers will leave
- Performance optimization is the need of the hour
- It will benefit YOU, after all
- Happy customers stay Forever
Now that you know ‘Why’, let’s move on to ‘How’.
9 Proven Ways to Speed Up Magento 2 Store
- Full Page Caching
- Choose Fastest Magento hosting
- Select Production Mode
- Merge & Minify CSS, JS Files
- Perform 3rd-party Plugins Audit
- Optimize TTFB
- HHVM (HipHop Virtual Machine)
- Optimize Your Code
1. Full page Caching
Caching is the key to super fast speed. Your eCommerce store loads much faster when there is a minimum load on the server. It’s like feeling light and energetic when your mind is at peace.
Full page caching works amazingly well when it comes to speed up your Magento 2 stores. The rule of thumb here is to keep your server as light as possible.
Here’s how you do it:
System > Cache Management > Select all > Enable > Submit
2. Choose the Fastest Magento Hosting
Well, it’s an obvious one! Hosting is the foundation of your M2 store. You can put everything in place perfectly still your site can go sluggish if you are with the wrong host.
You can’t have a fast Magento 2 store on a cheap VPS. Therefore, you must have a fast, reliable web host to improve Magento 2 performance.
Seek following 3 things from your Magento 2 web host:
- High-security standards
- High-speed connection
- 24*7 customer support
P.S. With a faster managed hosting success is sure. Furthermore, many managed Magento 2 hosting providers are there to provide 24*7 customer support and handle all your issues beautifully. Thus, it will be another win-win for you as they promise better speed, 100% uptime, bullet-proof security and more.
You can also see our post on how to choose the best Magento hosting for you.
3. Select Production Mode
When we talk about Magento 2 performance optimization checklist we can’t skip this one. Because it improves your store’s performance significantly and is specially crafted for Magento 2 platform.
M2 incorporates three running modes: default, developer, and production. Running your store on default or developer mode won’t do any good to your site speed.
So, in order to speed up Magento 2, always run your store on Production mode; amongst all, production mode is the fastest.
Here’s how you do it:
php bin/magento deploy:mode:set production
4. Merge & Minify CSS, JS Files
Magento 2 comes with an option to merge, minify and bundle. Make the best use of it because you will get rewarded with enhanced Magento performance and great speed.
Here’s how you do it:
4.1 Merge & Minify CSS\
- Open backend
- Stores > Configuration > Advanced > Developer > CSS Settings
- Set “Yes” for both Merge CSS Files and Minify CSS Files Options
4.2 Merge & Minify JS
- Open backend
Although bundling is an innovative feature brought by M2, JS bundling is not something you wanna do if you are already using HTTP/2 and really want your site to speed up.
Why? Because the bundled JS file is huge in size; it takes around 5-13 Mb of space. It can make your M2 store speed suffer significantly.
6. Perform 3rd-party Plugins Audit
This is probably one of the most important steps to enhance your store’s performance. Custom extensions make Magento 2 heavy and sluggish; the more is the no. of 3rd-party plugins the slower will be your store.
Thus, performing a 3rd-party extension audit can give you a sigh of relief.
Custom extensions do more harm than good. Many 3rd-party plugins are created by amateur coders whereas Magento 2 core is written by world-class professionals. So, which one would you choose?
Obviously, the one that comes straight from the experts and makes your Magento faster will be the right choice!
Here’s how you do it:
- Disable all the custom extensions one by one
- Benchmark speed with and without an extension
- List out the extensions that take the most time to run
- Contact their vendors and ask to patch
- In case of no patch, just remove the extension and find a substitute
Tip: JMeter is our favorite tool for benchmarking. You can use this tool to check which custom extension is making your site slow.
7. Optimize TTFB
TTFB or Time To First Byte is the time a browser’s request travels to the server and the server responses back to it (latency).
This is why Tyme To First Byte is also referred to as Server Response Time. It is also the time when the server generates HTML.
Google suggests that your TTFB should be much lesser than 200ms. Otherwise, it’s considered bad TTFB. Thus, the Server Response Time Audit is a quintessential task to speed up Magento 2 and rank better on Google.
We will make a full guide for you on ‘How to optimize TTFB’, soon!
8. HHVM (HipHop Virtual Machine)
HHVM is a special open source virtual machine or server software based on JIT (Just-In-Time) compilation that eCommerce store owners can install and hook up with Magento 2.
It replaces php-fpm and can work with Nginx or Apache.
Being a store owner you should use it because many famous brands like Facebook are also using HHVM to do better and load fast!
9. Optimize Your Code
There is no surprise that complex PHP code in Magento makes your site slow. Optimizing your code becomes a necessity when you are using a heavy platform like M2.
To make it easy on you, we have divided this point into several segments:
9.1 PHP Accelerators:
For the heavy PHP coding, you can use the PHP accelerators for code optimization.
The PHP accelerators cache the PHP scripts used in the web page and make your store faster.
9.3 Disable/Limit PHP Modules:
Since many PHP modules do no good to your website speed and still sit back there to make your M2 store slow.
You must uninstall the unwanted PHP modules from your coding section to clean up space.
9.4 Don’t abuse jquery.ready:
Sometimes we put CPU intensive tasks in jquery(document).ready. This ultimately slows down the page loading speed. Therefore, choose onLoad events very carefully so as to avoid any lag.
Some other important practices that go hand in hand for Magento 2 optimization:
- Enable Flat Catalog
- Sign up for Content Delivery Network
- Image Optimization
- Enable Gzip Compression
- Reduce Server Response Time
- Magento Updates
It’s not rocket science to speed up Magento 2 store’s performance and boost your sales. It’s as simple as practicing the given tips and tricks.
Note: For an instant boost in your eCommerce performance combine all these amazing tips with the fastest managed Magento hosting in the market. Because above all, your eCommerce store requires a good host to work fast and be secure.
Services we offer:
- Managed Magento Hosting for Businesses
- Managed WordPress Hosting for Business-Agency
- AWS Management
- DigitalOcean Managed
- Managed Cloud Server India
- Dedicated Server India
Enquire now and join 1000+ businesses who have blitzscaled their websites by choosing ServerGuy as their hosting partner.