---
title: "next/image loading offset"
description: "Learn how lazy loading works on next/image."
url: "https://vercel.com/templates/next.js/image-offset"
links:
  repository: "https://github.com/vercel/examples/tree/main/solutions/image-offset"
  demo: "https://solutions-image-offset.vercel.app"
  deploy: "https://vercel.com/new/clone?demo-title=next%2Fimage+loading+offset&demo-description=Learn+how+lazy+loading+works+on+next%2Fimage.&demo-url=https%3A%2F%2Fsolutions-image-offset.vercel.app&project-name=image-offset&repository-name=image-offset&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fimage-offset&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F2lVb8T1jGWicVbPZzPInvQ%2Fd99011254f3c3c262c5d908b360c100d%2Fsolutions-image-offset.vercel.app_.png"
---

# next/image loading offset

Learn how lazy loading works on next/image.

This example shows how lazy loading works on next/image.

## Demo

https://solutions-image-offset.vercel.app

## How to Use

You can choose from one of the following two methods to use this repository:

### One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/image-offset&project-name=image-offset&repository-name=image-offset)

### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:

```bash
npx create-next-app --example https://github.com/vercel/examples/tree/main/solutions/image-offset image-offset
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/solutions/image-offset image-offset
```

Next, run Next.js in development mode:

```bash
npm install
npm run dev

# or

yarn
yarn dev
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=edge-middleware-eap) ([Documentation](https://nextjs.org/docs/deployment)).

## Related Templates

### [Reducing bandwidth usage with next/image](https://vercel.com/templates/next.js/reduce-image-bandwidth-usage)

Learn how to reduce bandwidth and processing costs when using different layouts.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
