You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webdev: 3.2 Minify Your HTML, CSS, and JavaScript reword #27
Success Criterion - Minify Code
All source code is minified upon compilation (including inline code).
Suggested text:
3.2 Optimize and Minify Your Web Assets
Minimizing code is essential for creating efficient, performant, and sustainable web applications. Smaller codebases translate to faster load times, reduced bandwidth consumption, and easier maintenance. This principle applies to both frontend (client-side) and backend (server-side) code, though the specific techniques may differ. The following points contribute to minimizing code across the application stack
Success Criterion - Minify Assets
Remove unnecessary whitespace, comments, and other non-essential characters from code and data files to reduce file sizes and improve loading times. This applies to HTML, CSS, JavaScript, JSON, SVG, and other relevant file types.
Minifying is the term most tooling and developers refer to as the process of removal of unnecessary characters, so I have changed "minimizing" (as this is usually a term reserved for the hiding of a window).
I've added an exception for not-for-production code, where developer readability holds higher priority for sustainability.
Activity
kazuhito-kidachi commentedon Mar 3, 2025
I just wonder, we might be able to cover server side techniques (e.g. usage of mod_deflate Apache module) to the SC.
AlexDawsonUK commentedon Mar 3, 2025
@kazuhito-kidachi Compression has it's own guideline covered in 4.3, we want to avoid duplication if possible.
But other server-side techniques not covered elsewhere in the WSG absolutely could be covered!
kazuhito-kidachi commentedon Mar 3, 2025
@AlexDawsonUK Thank you, I missed 4.3!
#27 3.2 & #28 3.3 SC Update
AlexDawsonUK commentedon Mar 5, 2025
I've integrated this with the following changes: