Skip to main content
InterviewHubPRO
Section Overview
Q14

Question 14 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

28%
Web Vitals & Performance (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

How does `fetchpriority="high"` accelerate LCP image discovery?

senior LevelCode ExampleDocker & ContainersSystem DesignHTTP & REST APIs

In Simple Words: Browsers typically prioritize CSS, fonts, and scripts over images. If a page has 20 images, the hero LCP image sits in the low-priority queue:

html
<img src="hero.webp" fetchpriority="high" alt="Product Hero" width="800" height="400" />
  • fetchpriority="high" tells the browser's preload scanner: "This is the most critical element on the entire page. Prioritize its TCP socket streams ahead of all other images and non-critical scripts."
  • Cuts LCP by 500ms to 1.5 seconds on mobile devices.