HTML Minifier for PrestaShop

Version 1.0.0PrestaShop 1.7 - 9.1PHP 7.0 - 8.4
Available languages : 🇫🇷 🇬🇧
Price: €0.00
Tax included

25% off your first order: FIRST25

Reference HTP Category PrestaShop Brand PrestaShop

Optimize your PrestaShop store’s code with HTML Minifier: HTML, CSS and JavaScript minification, comment removal, code cleanup, image lazy loading, and link optimization to improve your site’s performance.

This module doesn't have a demo shop.
Rating:
(0)
Secure payment
100% secure transactions
Instant delivery
Module available immediately after payment
Support 7/7
Technical support via our form

The description

Optimize your PrestaShop store’s performance

HTML Minifier is a PrestaShop module designed to lighten and optimize the HTML code generated by your store. It reduces the amount of code sent to the browser by removing unnecessary elements while preserving all essential content and features of your site.

Thanks to its various optimization options, you can adapt the module’s behavior to your store’s needs and enable only the processing you require.

Simple and efficient HTML minification

HTML Minifier can reduce the weight of your HTML code by removing unnecessary spaces and line breaks. The module also protects certain sensitive content to limit the risk of structural changes during the optimization process.

HTML comments can also be automatically removed to further lighten the source code of your pages.

CSS and JavaScript optimization

The module also allows you to optimize CSS and JavaScript embedded directly in your pages. Inline CSS minification removes unnecessary comments and whitespace.

Inline JavaScript can be processed in safe mode. External scripts and JSON-LD structured data are protected to preserve important elements for the store’s functionality and SEO.

Automatic image Lazy Loading

HTML Minifier includes a native Lazy Loading feature that automatically adds the loading="lazy" attribute to eligible images.

This allows images to load only when needed, helping reduce the amount of resources initially loaded and improving perceived performance on certain pages.

HTML code cleanup

The module can remove certain attributes that are no longer necessary in modern HTML, such as type="text/javascript" and type="text/css".

This cleanup helps maintain lighter, cleaner source code, which is particularly useful for stores with many pages and dynamic content.

Link optimization and security

For links using target="_blank", HTML Minifier can automatically add the rel="noopener" attribute when it is missing.

This feature provides an additional security improvement for links opened in a new tab while ensuring consistent configuration across the entire store.

Exclusions to keep full control

Every PrestaShop store has its own configuration, and some processing may require special attention. HTML Minifier therefore allows you to exclude specific PrestaShop controllers from optimization.

The module also includes a debug mode that temporarily disables all optimizations to simplify testing, troubleshooting, or comparing the store’s behavior with and without minification.

Protection of sensitive elements

HTML Minifier provides protection for several types of content during minification, including SVG, CSS, and JavaScript blocks. JSON-LD structured data is also taken into account to avoid disrupting information used by search engines.

You can also manually protect a portion of code using the special tags htmlminifier-disable and htmlminifier-enable.

Compatible with PrestaShop 1.7, 8 and 9

HTML Minifier is designed for PrestaShop 1.7.8 and higher, PrestaShop 8, and PrestaShop 9. Its option-based operation allows you to progressively adapt optimization to your store’s configuration.

Whether you simply want to lighten your HTML or implement several complementary optimizations, HTML Minifier offers a centralized solution to clean and reduce the code generated by your PrestaShop store.

Technical sheet

CMS PrestaShop
Compatibility 1.6 1.7 8.0 9.0
Language English French
PHP 7.0
Multistore Yes
Category Performance & Security

Version history

Version 1.0.0
  • Ajouté HTML minification and comment removal
  • Ajouté Inline CSS and JavaScript minification with safe mode
  • Ajouté Lazy Loading optimizations, link SEO enhancements, and obsolete attribute cleanup
  • Ajouté Management of excluded controllers and debug mode