Previous rule | Režim nr. 067 | Next rule

Style sheets are minified

Minification consists of minimizing the amount of data and thus the weight of the bearer file by removing the elements from which the drive machine can be dispensed (typically : spaces, line breaks and comments). CSS stylesheets can be minified.

Objectives

  • Minimize amount of data to download
  • Increase performance
  • Decrease the energy impact linked to the consultation of the digital book

Implementation

  • Remove unnecessary spaces and comments in CSS files using dedicated tools.

Control

  • Manually check within all CSS files that no line, comment, indentation or line break is available.
  • Or identify the list of non-minified CSS files using development tools (browsers, online tools, etc.)

Validation

  • Needs to be human verified.

Informations