Minify Source HTML and Drupal 11
The latest stable release, 2.0.5, declares a core version requirement of ^9 || ^10 || ^11, which covers Drupal 11.
This module does exactly what the title says - it minifies the source HTML before the data is sent to the browser. The module hooks into the very end of the rendering process to make sure it minifies everything. This module plays well with page compression, caching and Bigpipe (D8+) The companion module Minify JS module minifies JS.
Key facts
- Project
- minifyhtml
- Latest stable with Drupal 11 support
- 2.0.5 (1 May 2024)
- Core version requirement
- ^9 || ^10 || ^11
- Maintenance status
- Actively maintained
- Reported installs
- 13,016
- Last synced from drupal.org
- 21 Sept 2026
Every field above comes from the drupal.org API. The Drupal 11 status is derived from the core version requirement across this project's releases.
Source: drupal.org/project/minifyhtml
Related modules in Performance
Purge
ReadyInteracts with external caches, reverse proxies, and CDNs to remove content from their caches as content changes, while keeping unchanged content cached forever.
purgeLatest stable 8.x-3.739,897 sitesPantheon Advanced Page Cache
ReadyPantheon Advanced Page Cache module is a bridge between Drupal cache metadata and the Pantheon Global CDN . Just by turning on this module your Drupal site will start emitting the HTTP headers necessary to make the Pantheon Global CDN aware of data underlying the response.
pantheon_advanced_page_cacheLatest stable 2.4.137,055 sitesWebP
PartialCreates a WebP copy of image style derivatives to decrease loading times. Description Whenever an image style derivative is created this module will also create a WebP copy of the derivative to be served to supporting browsers. Installation Make sure your hosting supports webp Install the module.
webp29,325 sitesFast 404
ReadyWhat and Why Drupal has expensive 404 errors. On an 'average' site with an 'average' module load, you can be looking at 60-100MB of memory being consumed on your server to deliver a 404. Consider a page with a bad .gif link and a missing .css file. That page will generate 2 404s along with the actual load of the page.
fast_404Latest stable 8.x-3.713,500 sites