The scripts are minified.

Minification consists of reducing as much as possible a volume of data and therefore the weight of the carrying file by removing elements that the reading machine can do without (typically: spaces, line breaks and comments). JavaScript files can be minified.

Objectives

  • Minimize the amount of data to download
  • Improve performance
  • Reduce the energy impact linked to consulting 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 returns, comments, indentations or line breaks are present.
  • Or identify the list of non-minified JavaScript files using development tools (browsers , online tools, etc.)

Validation

  • Needs to be human verified.

Informations :

Steps concerned :

About that rule

Rule origin : Opquast | Opquast reference 4 223 | Updated on July 8, 2024

Previous rule | Next rule