Picto thématique

Rule n° 222 - Style sheets of the website 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.

#Eco-conception #Server and performance #Development

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


Opquast training and certification

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 13,500 web professionals to have their skills certified. Train your teams or your students, contact us