Template name
Learn to lazy load ads using the Next.js Script Component.

This example shows how to lazy load ads using the Next.js Script Component.
https://solutions-script-component-ad.vercel.app
You can choose from one of the following two methods to use this repository:
Execute create-next-app with npm or Yarn to bootstrap the example:
npx create-next-app --example https://github.com/vercel/examples/tree/main/solutions/script-component-ad# oryarn create next-app --example https://github.com/vercel/examples/tree/main/solutions/script-component-adNext, run Next.js in development mode:
npm installnpm run dev
# or
yarnyarn devDeploy it to the cloud with Vercel (Documentation).

Reduce CLS and improve performance from client-loaded experiments with Statsig

See how Vercel's Skew Protection feature enables production-ready blue-green deployments with just a few lines of code.

By A/B testing at the edge, you'll reduce CLS from client-loaded experiments and improve your site's performance with smaller JS bundles.