Skip to content

Add width/height attributes to images to prevent CLS #201

Description

@fkakatie

Problem:
createOptimizedPicture generates <img> elements without width/height attributes, causing Cumulative Layout Shift (CLS) and poor Core Web Vitals scores.

Constraint:
Solution must NOT require authors to manually add dimension metadata to documents (per boilerplate authoring guidelines).

Related Issue: adobe/aem-boilerplate#169

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions