Previous rule | Register No. 068 | Next rule

The scripts 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). JavaScript files 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 JavaScript files using dedicated tools

Control

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

Validation

  • Needs to be human verified.

Informations