3.2 Minify and remove unused code
Minify code and data, and remove unused characters to reduce file size and improve loading efficiency and maintainability.
Success Criteria
- Minified code:
Minify code and data files by removing unnecessary whitespace, comments, attributes, and non-essential characters. Apply this consistently across the system to reduce file size and improve loading efficiency. This helps to reduce cumulative data transfer and processing overhead at scale, improving resource efficiency and reducing energy consumption. Ensure that minification does not introduce any errors. - Remove redundancy:
Identify and remove unused or dead code, especially in CSS and JavaScript.