Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: CLS and Image

How does the Image component prevent the page from jumping (Cumulative Layout Shift)?

Answer options

  • It loads all images before showing the text
  • It shows images only after the page is scrolled to the end
  • It reserves space for the image based on width and height or the parent's size before the file arrives
  • It shrinks all images to one size

You can check the correct answer by solving this task in the CodeWorlds game.