Skip to content

Optimize index.html #22559

Closed
Closed

Description

@jelbourn

While working on angular.io, I noticed that the site includes a number of both HTML and inline JS comments. That led me to note that the HTML and inline JS includes whitespace. In the grand scheme of things this is pretty minor, but it would be nice if the CLI could apply a few basic, safe optimizations for index.html:

  • Remove comments (probably configurable for HTML comments which can theoretically be load-bearing)
  • Remove non-significant whitespace (e.g. any whitespace outside of <body>)
  • Optimize inline JS (needs some due diligence to make sure this is safe) and CSS (much safer)

Activity

  1. alan-agius4 commented on Jan 24, 2022

    @alan-agius4
    Collaborator

    Duplicate of #11360

  2. angular-automatic-lock-bot commented on Feb 24, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions