Web performance optimization reduces loading time and improves the Core Web Vitals: compression and modern image formats, deferred loading (loading="lazy"), declared image dimensions, reduced and postponed JavaScript, caching, controlled fonts. You measure before and after to verify the gain.
Example
<img src="photo.webp" width="800" height="600" loading="lazy" alt="Beach">