Skip to content

Improve Enqueued Assets report in Site Health #267

Open
@mxbclang

Description

The current Site Health reports for the Enqueued Assets module, introduced in #25, do not include actionable information for users about how to address a site loading too many enqueued assets. As noted by @felixarntz here:

We also need to think about how to make this warning more actionable, e.g. at a minimum tell users which plugins or themes are responsible for enqueuing the majority of assets etc.

Suggestions for changes (in progress) are below.

Enqueued scripts

If acceptable

image

Current description: The amount of [#] enqueued scripts (size: [size]) is acceptable.

New description:

If not acceptable

image

Current description: Your website enqueues [#] scripts (size: [size]). Try to reduce the number or to concatenate them.

More info about performance optimization

Clean Test Cache

New description:

Enqueued styles

If acceptable

image

Current description: The amount of [#] enqueued styles (size: [size]) is acceptable.

New description:

If not acceptable

image

Current description: Your website enqueues [#] styles (size: [size]). Try to reduce the number or to concatenate them.

More info about performance optimization

Clean Test Cache

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIssue particularly suitable to be worked on by new contributors[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin only[Type] EnhancementA suggestion for improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions