Fix your website's Largest Contentful Paint by optimizing image loading | MDN Blog
Briefly

Images are critical for website performance, as they significantly influence Largest Contentful Paint (LCP)—a key metric in Google’s Core Web Vitals that affects user experience.
When images load slowly, they increase LCP time, thereby negatively impacting Core Web Vitals scores. This can lead to poor user experience and decreased website engagement.
Using JavaScript to load images can be detrimental, as it introduces a request chain that delays the image download. This can significantly worsen loading performance.
Understanding how browsers handle image requests—including network requests, prioritization, and rendering—reveals effective optimization techniques to improve loading speed and overall performance.
Read at MDN Web Docs
[
|
]