Skip to content

Commit

Permalink
Adds the "why" for next/image optimization (#51066)
Browse files Browse the repository at this point in the history
Give a touch more context as to why one would want to use image optimization.

Fixes #30220
  • Loading branch information
manovotny committed Jun 9, 2023
1 parent 1a0b5d2 commit 9fad474
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ related:

</details>

The Next.js Image component extends the HTML `<img>` element with:
According to [Web Almanac](https://almanac.httparchive.org), images account for a huge portion of the typical website’s [page weight](https://almanac.httparchive.org/en/2022/page-weight#content-type-and-file-formats) and can have an sizable impact on your website's [LCP performance](https://almanac.httparchive.org/en/2022/performance#lcp-image-optimization).

The Next.js Image component extends the HTML `<img>` element with features for automatic image optimization:

- **Size Optimization:** Automatically serve correctly sized images for each device, using modern image formats like WebP and AVIF.
- **Visual Stability:** Prevent [layout shift](/learn/seo/web-performance/cls) automatically when images are loading.
Expand Down

0 comments on commit 9fad474

Please sign in to comment.