Picto thématique

Rule n° 223 - Scripts of the site are minified.

The minification: a simple practice to reduce the volume of data to download, and thereby, accelerate access to your site.

#Server and performances #Development #Ecodesign

Goal

  • Speed up the display of your pages.
  • Improve performance.
  • Reduce the quantity of data to download.
  • Reduce the energy impact related to the consultation of the site.

Implementation

Remove unnecessary spaces and comments in JavaScript files, using dedicated tools.

Control

For the whole site:

  • Manually check in all the JavaScript files that no new lines, indentations or line breaks are present.
  • Or use the listing of non-minified JavaScript scripts using development tools (browsers, online tools, etc.).

By Opquast - Read the license