Picto thématique

Rule n° 222 - Style sheets of the site are minified.

It is possible to reduce the size of the CSS style sheets without affecting the final rendering. This operation, known as minification, minimises the amount of data to be downloaded and helps to improve performance.

#Server and performances #Development #Ecodesign

Goal

  • Minimize the quantity of data for users to download.
  • Improve performance.
  • Reduce the energy impact related to the consultation of the site.

Implementation

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

Control

For the whole website

  • Check manually within all CSS files that new lines, comments, indents or line breaks are present.
  • Or use the listing of non-minified CSS files using developer tools (browsers, online tools, etc.)

By Opquast - Read the license