Skip to content

next/image priority with media queries #29612

@aghoneim92

Description

@aghoneim92

Describe the feature you'd like to request

When specifying the priority prop to the Image component in next/image, it would be useful to specify a media query, to support desktop-only images, for example.

Describe the solution you'd like

Perhaps a priorityMediaQuery prop that can be set to a specific media query?

Describe alternatives you've considered

I've used a wrapper div with display:none for some media query but the priority prop overrides this.

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