hero image
The large banner image or section at the top of a page, often the Largest Contentful Paint element.
In more detail
It is usually the first thing users see and the largest element on the screen. Load it early with preload or fetchpriority="high" and never lazy-load it.
Related terms
- Largest Contentful Paint — A Core Web Vital: the time from starting to load a page until its largest visible image or text block is drawn.
- fetchpriority attribute — An HTML attribute that hints a resource's relative download priority as high, low or auto.
- preload — A resource hint, <link rel="preload">, that makes the browser download a file needed for the current page right away at high priority.
Taught in
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform
- Container Queries: Component-Driven Responsive Design — Frontend Architecture & Web Platform
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform