You have no items in your shopping cart.

Installation and configuring plug-in nopPagespeedTools

The plugin makes your nopCommerce store faster and raises its Google PageSpeed Insights score. It minifies HTML, CSS and JavaScript, moves, inlines and loads in async mode CSS, JavaScript and fonts, adds lazy loading to pictures, compresses the picture files and serves pictures, CSS and JavaScript from your CDN. You don't need to change your theme.

It's easy to configure the plugin. See pictures.

 

1. Open the menu 'FoxNetSoft' - 'Google Pagespeed' in the admin area.

nopPagespeedTools – admin menu, step 1

 

2. Enable 'Enable plugin'. The plugin does nothing while it is disabled.
Check your store with Google PageSpeed Insights or GTmetrix before and after you configure the plugin. The links are on the page.
'Enable Image lazy loading for the web'. The browser loads a picture only when the customer scrolls to it. We advise you to enable it.
'Enable picture optimization'. The plugin compresses the .jpg, .png and .gif files in the folders from 'Extra folders with pictures', one folder per line, with all subfolders. By default they are '~/images/' and '~/Plugins/'. Add your theme folder too, for example '~/Themes/YourTheme/'.
The plugin overwrites the files with the compressed copies in the same format. Make a backup of these folders before the first run.
'Last datetime of picture optimization'. The plugin saves here the time when it finished the work. The next run compresses only the new files. Clear the value if you want to compress all pictures again.
The plugin does not create WebP files. For WebP and AVIF pictures use our plugin from the link on the page.

nopPagespeedTools – configuration page, step 1

 

3. You could compress one picture. Enter its URL in 'Picture Url' and press 'Minify'.
The scheduler compresses the pictures every 6 hours. Press 'Run task' if you want to do it at once.
Check that the task 'Google Pagespeed' is enabled in System - Schedule tasks. The same task minifies the CSS and JavaScript files.

nopPagespeedTools – configuration page, step 2

 

4. 'HTML' tab. Enable 'Minify Html'. The plugin removes spaces, comments and other extra characters from the HTML of each page.
'Disable minify Html for pages with size (in bytes)'. The plugin does not minify the pages bigger than this size. 0 - no limit.
'Remove all HTML comments', 'Remove HTML comments from scripts and styles', 'Remove CDATA sections from scripts and styles', 'Use short DOCTYPE' and 'Remove optional end tags' set what the minification removes.
'Ignored Urls'. The plugin does not change these pages at all, one URL per line. Example: /onepagecheckout. See step 13 about the format of the lists.
Disable 'Html minification (native nopcommerce)' when you use the minification of the plugin. It is the nopCommerce setting, the plugin shows it here to save your time.

nopPagespeedTools – configuration page, step 3

 

5. 'CSS' tab. Enable 'Enable Optimization of CSS styles'. The plugin creates the minified copy 'style.min.css' of each CSS file 'style.css' and uses it on the pages. It creates the copy again when you change the file. The files which are already minified are used as they are.
'Critical CSS Style (max 2000)'. The plugin puts these styles into the 'head' section of each page. Add here the styles for the top of the page. The service from the link on the page creates them for you.
'Move CSS style to section'. 'Head' or 'Footer' - the plugin moves all CSS styles there. 'Not move' leaves them in their places.
'Move only external css links to 'footer' section'. Enable it if you want to move only the CSS files and leave the inline styles in their places.
'Inline CSS styles into Html document'. The plugin puts the small CSS files into the page as 'style' blocks. 'The maximum size of inlined CSS file' is the size limit in bytes. 'Don't inline CSS styles (URLs)' - the files which the plugin should not inline.
'Enable Async Loading of css styles'. The browser loads the CSS files without blocking the page. 'Exclude CSS styles (URLs)' - the files which should load as usual.
If you move CSS to the footer or load it in async mode, fill 'Critical CSS Style'. Otherwise the customer sees the page without styles for a moment.

nopPagespeedTools – configuration page, step 4

 

6. You could minify one CSS file. Enter its URL in 'CSS Style Url' and press 'Minify'. For 'style.css' the plugin creates 'style.min.css'. For 'style.min.css' it updates the file itself. The store shows the new file at once.
'Run task' minifies all CSS files now. Otherwise the scheduler does it.

nopPagespeedTools – configuration page, step 5

 

7. 'Fonts' tab. Enable 'Enable Optimization of Fonts'. The plugin finds the Google Fonts links and moves them to the section from 'Move loading fonts to section'.
'Enable Async Loading of Fonts'. The browser loads the fonts without blocking the page.

nopPagespeedTools – configuration page, step 6

 

8. 'JavaScript' tab. Enable 'Enable Optimization of JavaScript'. The plugin uses the minified copy 'script.min.js' of each JavaScript file, the same way as for CSS.
'Move JS scripts to section'. 'Footer' moves all scripts to the end of the page, so the browser shows the page first.
'Inline JS scripts into Html document'. The plugin puts the small files into the page, up to 'The maximum size of inlined JS scripts' bytes. 'Don't inline JS scripts Urls' - the files which the plugin should not inline.
If a script must stay in its place, add the attribute data-fixedscript="1" to it in your view (.cshtml) file. The plugin does not move it.
<script data-fixedscript="1">/*your script*/</script>
After you move the scripts, check the pages with JavaScript: the product page, the shopping cart and the checkout.

nopPagespeedTools – configuration page, step 7

 

9. You could minify one JavaScript file. Enter its URL in 'JavaScript Url' and press 'Minify'. For 'jquery.js' the plugin creates 'jquery.min.js'. For 'jquery.min.js' it updates the file itself.
'Run task' minifies all JavaScript files now. Otherwise the scheduler does it.

nopPagespeedTools – configuration page, step 8

 

10. 'CDN' tab. If you use a CDN, enable 'Enable CDN' and the CDN for pictures, CSS and JS. Enter the CDN URL for each of them.
The plugin changes the URLs of these files on the pages to the CDN URL. The path stays the same: '/images/thumbs/logo.png' becomes 'https://cdn.yourstore.com/images/thumbs/logo.png'. Your CDN should take the files from your store (pull zone).

nopPagespeedTools – configuration page, step 9

 

11. 'Advanced' tab. 'Pass minification for Admins'. When you are logged in as administrator, the store shows you the HTML without minification. It helps you to check your store. The customers and Google bots see the minified pages.
You need the GZip hint for SVG only if you have a problem with SVG files on an old IIS. For the 'hreflang' tag use our other plugin from the link.

nopPagespeedTools – configuration page, step 10

 

12. Check the result. Open your store as a guest and open the page source (Ctrl+U).
In the 'head' section you see the '.min.css' links and the small CSS files inlined as 'style' blocks.

nopPagespeedTools – page source, step 1

At the end of the page you see the '.min.js' scripts.

nopPagespeedTools – page source, step 2

 

13. How to fill the lists 'Ignored Urls', 'Don't inline CSS styles (URLs)', 'Exclude CSS styles (URLs)' and 'Don't inline JS scripts Urls'.
Add one URL per line. Copy the URL from the page source of your store. Use the name of the minified file when the plugin minifies it.
/Themes/DefaultClean/Content/css/styles.min.css
Add * at the end of a URL for all files of the folder.
/Plugins/FoxNetSoft.CarouselManager/*
Add # at the start of a line to disable it.
#/Themes/DefaultClean/Content/css/styles.min.css

 

14. 'Critical CSS Style', the CDN settings and 'Html minification (native nopcommerce)' could be set for each store separately. Select the store in 'Multi-store configuration for' and check the override checkboxes.
The plugin does not change the pages of the admin area.

Powered by nopCommerce

Copyright © 2026 FoxNetSoft. All rights reserved.