What is Lazy Loading?
Lazy loading is a technique that delays loading non-critical resources until they're needed. Instead of loading all images when the page loads, lazy loading only loads images when they enter the viewport.
Benefits of Lazy Loading
Native Lazy Loading
Modern browsers support native lazy loading with a simple attribute:
``
html
`
Browser Support
Best Practices
Don't Lazy Load Above-the-Fold
Images visible on initial load should NOT be lazy loaded:
`
html
`
Provide Dimensions
Always include width and height to prevent layout shifts:
` width="800"
height="600"
alt="Description">
html
`
loading="lazy"
Use Placeholder Colors
Show a placeholder while the image loads:
` img[loading="lazy"] {
background: #f0f0f0;
}
css
``
What We Check
Our Lazy Loading Audit analyzes:
Audit your lazy loading implementation with our free performance tool.