Skip to content

Commit

Permalink
Remove unused code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Oct 27, 2021
1 parent a873f98 commit a4bbabb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/basic-features/image-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ You should add the `priority` property to the image that will be the [Largest Co

The LCP element is typically the largest image or text block visible within the viewport of the page. When you run `next dev`, you'll see a console warning if the LCP element is an `<Image>` without the `priority` property.

````
Once you've identified the LCP image, you can add the property like this:

```jsx
Expand All @@ -141,7 +139,7 @@ export default function Home() {
</>
)
}
````
```

See more about priority in the [`next/image` component documentation](/docs/api-reference/next/image.md#priority).

Expand Down

0 comments on commit a4bbabb

Please sign in to comment.