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.
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.
Technical solution
Remove unnecessary spaces and comments in JavaScript files, using dedicated tools.
Control method
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.).