Careeroza
Images and Fonts
Image Checklist
- Use
next/imagefor every content image; givewidth/heightorfill+ an aspect-ratio box. - Set
priority(orpreloadin Next.js 16) on the LCP image only, usually the first banner or the main product photo. - Always set
sizeswithfillor responsive layouts; without it the browser downloads a 100vw image. - Enable AVIF for smaller files:
images: { formats: ['image/avif', 'image/webp'] }. - Serve product photos from a CDN and allow it in
remotePatterns.
Font Checklist
- Use
next/font: self-hosted, preloaded,size-adjustfallback to avoid layout shift. - Load only needed subsets (
latin, adddevanagarifor Hindi) and weights. - Prefer variable fonts (one file for all weights).
import { Noto_Sans, Noto_Sans_Devanagari } from 'next/font/google';
export const sans = Noto_Sans({ subsets: ['latin'], variable: '--font-sans', display: 'swap' });
export const hindi = Noto_Sans_Devanagari({ subsets: ['devanagari'], weight: ['400', '600'], variable: '--font-hi' });