CodeZettaInterview Hub

HTML · Performance · Junior · Best Practice

Why do width/height on images matter for performance UX?

Short Interview Answer

They reserve layout space reducing CLS; help browser pick dimensions with sizes.

Detailed Explanation

Modern alternative: CSS aspect-ratio. Missing dimensions cause jank as images load.

Did you know this answer?