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