Skip to content

Image performance: serve video instead of GIFs #130

@tmshv

Description

@tmshv

Problems

  1. images.unoptimized: true serves raw GIFsnext.config.js:5
    GIFs in public/images/ are up to 7MB. The repo already has mp4/webm conversions for most of them. Serve <video> with mp4/webm sources instead of <img> for animated content.

  2. SwitchImage uses next/legacy/imagesrc/components/SwitchImage/index.tsx:2
    Migrate from next/legacy/image to next/image. The legacy component will be removed in a future Next.js version.

Metadata

Metadata

Assignees

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