No image available

html_minifier

A lightweight PrestaShop module that minifies HTML output by removing extra whitespace and blank lines, helping reduce page size without modifying theme files.

Developed by metacreo

Get This Module Free on PS Forum EN
PS 8.0 License: Unknown Status: Unknown Health: Excellent

Info updated 1 month ago

Sources
PS Forum EN Visit →
Type
Module

Info checked: Mar 2, 2026

HTML Minifier is a lightweight PrestaShop module that reduces the size of HTML output sent to visitors' browsers by stripping unnecessary whitespace and newlines from the rendered page source. By compressing the HTML output at the server level, the module can contribute to faster page load times without modifying theme files or requiring complex configuration.

  • Whitespace removal: Removes extra spaces and blank lines from HTML output, minimising the overall size of the page source delivered to the browser.
  • Attribute-level cleanup: Strips redundant spaces between HTML tag attributes and trims trailing spaces within attribute values.
  • Safe tag exclusion: The <script>, <pre>, and <textarea> tags are excluded from minification to avoid breaking JavaScript or preformatted content.
  • No overrides: The module works without using PrestaShop core overrides, reducing the risk of conflicts with other modules or theme customisations.

This module is suitable for PrestaShop store owners looking for a simple, server-side HTML optimisation tool that requires no external service or complex setup. It has been tested with the default and Warehouse themes; the developer advises contacting them if issues arise with other themes.

  • Reference
    html_minifier

  • License
    Unknown
  • PS Compatibility
    8.x
  • Status
    Unknown

Comments (0)

No customer reviews for the moment.
Loading...