Skip to content

Remove missing sizes attribute error when using loading="lazy"—swap to use sizes="auto" instead. #207

@zachleat

Description

@zachleat

Note that "auto" is already supported as a value for sizes in this plugin. This issue is specifically for the error message at:

let missingSizesErrorMessage = `Missing \`sizes\` attribute on eleventy-img shortcode from: ${originalSrc || attributes.src}`;

IMPORTANTLY sizes="auto" is not yet supported anywhere.

https://groups.google.com/a/chromium.org/g/blink-dev/c/OAsmCbjPJz0/m/jzuTJzs1AAAJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions