Google PageSpeed Optimizer for Magento 2
The loading speed of an online store has a major impact on customer experience and search engine ranking.
The Google PageSpeed Optimizer for Magento 2 can significantly improve the Magento page load speed and store performance. Generally, the PageSpeed score is 90 out of 100.
- Lazy-load Images
- HTML, JS and CSS Minification
- Image optimization and conversion to WebP
- PageSpeed Monitoring Tool
We will install the extension in to your online store and configure it according to your requirements
Opportunity: Google considers the speed of an online store when ranking a site in the search results. It has even made a tool, which allows you to estimate your store's PageSpeed score. Stores with a higher score will be more likely to get to the top of the Google search results for important key requests.
Problem: The default Magento gets only the orange mark for the desktop version and red mark for the mobile version in this tool. Check Google Page Speed score of your store.
Solution: Our module will increase your store's page loading speed and greatly raise the PageSpeed score. Default Magento, along with our module, shows the PageSpeed score in the "good" green mark with scores close to the highest possible for the desktop version and score with an orange mark for the mobile version.
How does it work?
The extension applies optimization to your store's CSS, JS files, HTML and images. It reduces the size of the initially loaded content, improves the speed of loading, and removes resources that block fast page loading. Eventually, it will greatly improve the user experience and Google PageSpeed Score.
Optimizations of JS and CSS
- Advanced JS files bundling
- Move CSS, JS files to the bottom
- JS, CSS, HTML minification
- Preloading critical files
- Defer CSS files loading
- Defer YouTube videos & Google Fonts
Advanced JS files bundling
The default Magento collects a major portion of the code in its JS files that are not required on virtually every page. This code significantly increases the number of loaded JS files up to 120 and their total size up to 7 MB.
This reduces the number of loaded files by 3 times and the file size by 7 times! As a result, the loading speed of the web page and JS files is much higher.
Once enabled, it seeks to reduce the number of HTTP requests made by a browser during web page refresh. This is done by replacing multiple distinct JS files with a single JS file.
Move CSS, JS files to the bottom
One of the most frequent reasons for a PageSpeed score drop is the presence of resources that block page rendering due to large blocks of time required for their loading or execution..
In Magento, JS files were included in the heading of the page by default, prior to version 2.3.3. As a result, they were loaded before the rest of the page content. Their execution blocked the loading of the main part of a page, forcing users to wait for JS files to load.
The same is true for CSS files, which can require long periods of time for loading and analysis. Such files are also often located in the header of the web page.
As recommended by Google, our module moves the content of JS and CSS files to a website footer.
In this way, the main content of the page can be loaded and rendered before the JS and CSS can block its rendering. In such a configuration, it takes less time to load and display a web page.
Read more on how to remedy the Magento 2 Page Speed Insights render blocking resources suggestion for your site in our article.
JS, CSS, HTML minification
A page can load an excessive amount of code in JS, CSS and HTML files, which can be considered as a common cause of page performance issues.
The Page Speed Optimizer extension applies different minification algorithms to reduce the size of Magento JS, CSS, HTML files.
The size of CSS files is reduced by the extension by means of removing comments, unnecessary formatting and symbols. The same goes for HTML document minification.
The JS, CSS and HTML minification reduces the total loaded data volume and is one of the techniques for fixing magento page speed loading.
Our extension allows you to individually activate the minification of the JS, CSS and HTML files.
Preloading page resources
To speed up the loading process of JS and CSS files and fonts, our extension allows you to preload the most important files for rendering of the page. The browser caches the preloaded resources so that they will be available right at the moment they are needed.
Using this technology, the page is correctly displayed even if other files are still loading in the background.
Defer CSS files loading
Some of the CSS files your store starts loading just when the user clicks on the link can block the page rendering process, yet are not critical for this process.
To speed up the loading process of CSS files, our extension allows you to postpone the loading of files which are not directly used in the initial rendering of the page.
Those files will be loaded in the background later. This is beneficial for users with a slow internet connection and those connected via mobile devices.
Defer YouTube videos & Google Fonts
Minimize the influence of third-party elements, like YouTube videos and fonts, on the page loading speed of your store. Such resources can require a decent amount of time to load, thus causing a page to be flagged by the PageSpeed Insights.
The Page Speed Optimizer for Magento 2 extension allows you to postpone the loading of YouTube videos and Google Fonts. This way, it improves the overall loading speed and allows you to keep the enhanced functionality of the page by having videos and web fonts on the page.
Postponed files will be loaded in the background after loading of the main set of files, which leads to Magento speeding up the page load.
Optimizations of Images
- Lazy Loading of Images
- Image compression
- WebP format support
- Preload images
Lazy Loading of Images
Magento loads website images by default along with the main HTML, CSS, and JS files. As a result, the page will be displayed incorrectly and will not work until all the images are fully loaded. It negatively impacts customer experience and reduces the PageSpeed score of a website.
Increasing page speed for magento-hosted websites can be done by postponing the loading of images to the point when they are required.
First, the module uploads the most important files and shows customers a page with accurate placeholders instead of the images. When customers start to interact with the website, for example, scrolling down the page, the module loads the necessary images in the background.
On average, 50% of a page's size is comprised of images. By optimizing images, you can reduce page size by up to 20%.
Reducing the page size leads to faster page loading for users with a slow internet connection and those connected via mobile devices. The Google PageSpeed Insights tool uses the speed of a 3G mobile connection as a reference point.
The page speed optimizer extension can automatically optimize images for all common formats: JPEG, GIF, PNG.
You can set the image optimization value at 85% (that is recommended by Google) or choose the value depending on your needs. For example, you can lower the image quality even more to further improve page speed loading on slow internet connections.
Additionally, Page Speed Optimizer automatically converts images to modern .WEBP format. Pictures in this format require significantly less traffic for loading pages with a similar image quality level to JPEG or PNG. This increases your site loading speed even more.
WebP format support
WebP is a modern image format that offers a similar level of quality while webp files take significantly less bandwidth to load. It greatly reduces the size of images, while still providing good visual quality. The images are 25%-35% smaller in file size compared to PNGs or JPEG.
The WebP format should be used whenever it is possible to achieve the maximal saving for bandwidth while page loading.
Google's tool PageSpeed Insights collects every accessible BMP, JPEG, PNG file on the page, and converts them to WebP for file size comparison. Usually the results do not come out in favor of traditional image formats and the page gets flagged, which leads to lowered scores in PageSpeed Insights.
Preload of images
Modern web pages can have dozens of high resolution JPG, GIF and PNG files, and some of them can be critical for page rendering, like a background image or buttons that change based on action. The loading of such graphic resources can require time.
To speed up the loading process, our extension allows you to preload the most important images. Preloading of images allows you to retrieve the required images instantly from a local memory of the user's gadget instead of the distant server.
Using this technology, the page is correctly displayed even if other image files are still loading in the background.
Built-in PageSpeed Monitoring Tool
Conduct a Magento 2 page speed test without leaving your store. Specify which URLs of your website you need to track for page speed performance.
The Google Page Speed Optimizer for Magento 2 extension has a built-in PageSpeed Monitoring tool that allows you to see the changes of your store's page speed score over time.
No need for manual checking of each page to configure your Google PageSpeed score. The extension will collect the data on each specified page automatically by cron. The results will be displayed for desktop and mobile versions of the pages with a separate score history chart on Google Page Speed Magento for each of the page view types.
Optimize Pages Using the Command Line Interface
Our extension allows you to conduct frequently used tasks for checking and optimizing the page loading speed with the help of the Command Line Interface (CLI). By using CLI, you can run some tasks without waiting for the cron job to launch.
Use CLI to:
- Run a Google PageSpeed test for the specific page of your store
- Launch the process for image optimization
- Validate the software required for image optimization
- Restore original images
- Make a copy of images
Full Features List
- Run pre-fly checking
- Defer YouTube videos
- Ignore URL List
- Lazyload iframes
- CSS Optimization:
- Merge CSS Files
- Minify CSS Files
- Move CSS To Page Bottom
- Add styles to HTML from CSS resources
- Defer Google Fonts
- Additional CSS Styles
- Image Optimization:
- Total Scanned Files
- Optimized Files
- Webp Files
- Processed Size
- Saved Size
- Image Quality level
- Image optimization strategy
- Use WebP images
- Use WebP on product pages
- Image Lazy Load:
- Enable Lazy Load
- Preload first N images
- Do not use lazy load for images
- HTML Optimization:
- Minify HTML
- Preload resources
- Command Line Interface:
- Run a Google PageSpeed test for the specified web page
- Validate the software required for image optimization
- Run the image optimization process
- Restore the originals of the images
- Run process for creating copies of images in .WEBP format
- Responsive images:
- Generate a set of responsive images
- Clean up the created responsive images
- Configure the file naming patterns
- Google Page Speed Insights:
- Google PageSpeed Desktop Score
- Google PageSpeed Mobile Score
- Run Google PageSpeed Test
- Specify URLs for monitoring in PageSpeed
If you have a good template, this extension dosnt work.
I bought Miravit Google PageSpeed Optimizer
After uploading my values went up
In addition, site performance has increased a lot.
I will get it in my other site
It increases the page speed score, but still need a lot on server side otpimization.
Great on optimizing Images
Support and Services are excellent
Improves your page speed very much.
Must have extension for your M2 store.
it worth for money you can go for it without any doubt
I still need some more granularity for including or excluding specific scripts from being merged or bundled, but I hope that is coming in the future. It is a great place to start and has speed up our site about 15%. I still want much more and this will hopefully make it much easier in the future with more options.
I strongly recommend it to magento professionals!
Was a bit sceptical about this extesion but must say i'm impressed.
Have a desktop ranking on around 95 from 56.
Amazing and I have not tested its full potential yet.
Wow I must say.
Check it for yourself: https://www.laserpenonline.nl (https://developers.google.com/speed/pagespeed/insights/?hl=nl&url=laserpenonline.nl&tab=desktop)
These are our primary. A major portion of our new clients come from referrals from our existing clients. Our professional team of developers, marketers and support staff have invested the best knowledge and experience in the field into our work, so you know you can come back to us again and again.
One year free and high quality support. We go to great lengths to provide maximum satisfaction with every module you have purchased in our store. By helping you with installation, configuration, answering your every question, we do all our best to eliminate any possible problems.
30-days money back guarantee. If you are not satisfied with our extension’s performance for any reason, we provide a full refund.
We constantly add new features to all our modules, and are always interested in hearing your opinion and implementing your suggested features in our future developments.
We provide an expanded user guide for every aspect of our extension, so you can find answers for all your burning questions.
You can customize extensions according to your needs and requirements.
The Module is easy to install and upgrade, just follow our step-by-step user guide.
No core modifications. Just use the composer or copy the extension’s files to the root directory of your store.