Holiday season 2019 is just around the corner. Is your store up to the challenge? It’s high time you checked your Magento 2 and optimized it. And we hope our detailed overview of native Magento and custom options will help you with that task.
So there we go.
- Optimization in Magento 2
- Get our FREE PDF guide on JS optimization!
Optimization in Magento 2
Magento is a flexible system quite friendly to optimization. But there’s a small problem.
Handy Magento settings and their combinations are numerous, and it takes some effort to understand which of them your store requires. Besides, they are scattered all over the configuration board, so in case you have no bulky guide or a wise optimization guru at hand, your chances to succeed in Magento optimization are going to zero. This is the main problem with Magento.
Magento 2 also offers a whole pool of default optimization settings, and some of them improve the site performance in GTmetrix and PageSpeed Insights. Some settings, such as Use Flat Catalog Category and Use Flat Catalog Product I described and Minify HTML, are quite popular, while others aren’t.
To save you the trouble of skipping among configuration pages and modules, I’ll explain these settings on our optimization tool. Its key pro is that our devs managed to put all Magento 2 optimization settings on 1 page.
Many thanks, guys!
And there are a couple of native Magento 2 features that help boost optimization results. But first things first.
Get our FREE PDF guide on JS optimization!
Leave your email and we’ll send it to you at the very moment.
Native Magento 2 optimization options
Today’s Magento 2 offers a set of settings quite usable for optimization. This set may be enough for optimizing a mid-site store operating region-wide. But in any case, optimization is not an easy task. It can be compared to crossing a dangerous mountain river. When we manage to cross it, the optimization task will be accomplished.
Off we set.
So we start with HTML.
Minify HTML setting in the HTML tab helps to discard page code elements that are not needed for page load via a browser.
Going back to the example. Imagine that to cross the broad river, you have to walk across a suspension bridge with some of the steps broken or missing. To cross the river safely, you have to fix the bridge.
Here the situation is very much alike. Standard page code has breaks, comments and other elements that are irrelevant to page loading. So to speed up the page load, you need to get rid of them. And this is what minification does.
So if we activate Minify HTML setting, the number of symbols to be loaded decreases, and so does the size of the file.
Back to the bridge. This time we don’t pour asphalt onto the bridge surface. We try to pave the way using lightweight concrete tiles. This helps to hit the optimum – enabling the bridge fast and safe bridge crossing over the maximally lightweight bridge.
Do you think it’s done? Not really. Just wait and see what other settings do.
This way you’ll do the crossing faster, no wasting time on speeding up and slowing down.
And we move on to CSS.
CSS optimization options
The CSS block uses the structure and terms we already know. Here we’ll work on discarding the unnecessary elements, effective compression and transferring:
As a rule, CSS files are optimized along with JS ones, as the two types are closely connected in the page code.
Now let’s move to another section – Flat Tables.
Flat Tables for faster Magento 2
For more information, please read our blogpost on using flat catalog for optimization.
And we move to the last tab.
This tab includes 2 handy settings:
- Sign Static Files that allows browsers to renew cached page elements automatically. This will prevent situations when browsers load outdated cached copies of pages and harm the UX.
- Asynchronous indexing – a security setting that helps prevent clashes between read and write operations in the database, creating temporary storage for orders, which are then moved in bulk to the Order Management grid.
Our developers managed not only to locate all Magento optimization settings conveniently but also to add some handy features.
Fix all page-slowing factors with one Magento 2 module!
So what additional features are there? We describe them below.
Custom JS optimization
Now you’ll be able to optimize page JS by the algorithm that optimizes the relevant JS files and discards the redundant ones. For more information, please check out the easy-to-follow guide.
Our tool is not the only useful add-on the module has. There are some options allowing image optimization.
Lazyload images and other techniques
Various images – goods, design elements and more – make a large part of a Magento 2 store. With that in mind, we decided to add image optimization option for JPEG, GIF and PNG images. Just mind the following:
If you set Optimize Images to YES, you’ll compress the images and speed up the page loading with no harm to the image quality. This is possible due to a range of flexible settings available, such as Automatically Optimize Images in Catalog or Wysiwyg folder, JPEG optimization tool, PNG optimization tool, GIF optimization tool, Use Webp image format, Create Images in Smaller Resolutions and more.
Mind that you can apply these setting to the newly loaded images via dropdowns:
It’s possible to adapt the images to diverse devices, including smartphones and tablets. Image optimization settings in the module also allow you to cut and compress images when needed.
To learn more about image optimization, please check this section of the guide.
Lazyload optimization for images
The tool makes it possible to choose the image loading option that suits your e-store best. For instance, Use Lazy Loading Images = Yes activates delayed image loading. The images appear only when a user scrolls to them, which speeds up the page loading.
There are no strict rules that for promoting and speeding up your e-store.
Having gathered Magento 2 optimization settings in one solution, our developers leave the exact implementation for you. You can combine numerous settings and experiment to find the optimal setting configuration.
And who knows, in some time, this combination might even help you rank higher than Amazon. 😉
P.S. Haven’t you noticed? We’ve crossed the river; it’s a win!