EN, Change language
Englishالعربية
BH-094

HTML is minified.

The requirement

HTML is minified.

Why it matters to users

Extra whitespace and comments in the HTML are downloaded with every page on the citizen's data plan without ever being seen. On slow connections they delay the content appearing.

How to fix it

Turn on HTML minification in your CMS or build step, and strip comments from published templates. Then scan again.

How we measure it

Indentation and comments in each page's HTML as the server sends it, per KB of markup (over 20 bytes per KB flagged, a threshold set by xfix; the guideline gives none).

Its official source

Related rules

Minified HTML · Bahrain BH-094 | xfix