Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

18%
Web Vitals & Performance (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What causes high CLS on modern web pages and what are the simplest fixes?

junior Levelweb-vitalsBasic

In Simple Words:

Top Causes:

  1. Images, ads, or iframes without explicit dimensions.
  2. Dynamically injected content (banners, newsletter prompts) inserted above existing content.
  3. Web fonts swapping (FOUT - Flash of Unstyled Text).

The 3 Universal Fixes:

  1. Always include width and height attributes on <img> tags, or use CSS aspect-ratio: 16 / 9;.
  2. Reserve space for dynamic ads and banners using CSS min-height.
  3. Use font-display: optional or CSS font descriptor overrides to prevent font reflow.