Skip to content

Webdev: 3.2 Minify Your HTML, CSS, and JavaScript reword #27

Closed

Description

@andreadavanzo

Current text:

3.2 Minify Your HTML, CSS, and JavaScript

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.

Activity

  1. kazuhito-kidachi commented on Mar 3, 2025

    @kazuhito-kidachi

    I just wonder, we might be able to cover server side techniques (e.g. usage of mod_deflate Apache module) to the SC.

  2. AlexDawsonUK commented on Mar 3, 2025

    @AlexDawsonUK
    Member

    @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!

  3. kazuhito-kidachi commented on Mar 3, 2025

    @kazuhito-kidachi

    @AlexDawsonUK Thank you, I missed 4.3!

  4. self-assigned this
    on Mar 5, 2025
  5. added a commit that references this issue on Mar 5, 2025
  6. AlexDawsonUK commented on Mar 5, 2025

    @AlexDawsonUK
    Member

    I've integrated this with the following changes:

    • 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.
  7. added theissue type on Apr 2, 2025
  8. added this to the Q1-2025 milestone on May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

technicalCorrections, bugs, or minor omissions

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions