Rule n° 230 - Scripts of the website are minified.

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

#Basics #Development #Server and performance #Eco-conception

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.

Solution technique

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

Moyen de contrôle

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.).