Images are usually the heaviest part of a web page, so handling them well is the quickest way to speed up a site.
Size before you upload
Do not upload a photo straight from a camera. Resize it to the largest size it will be shown at and save it in a modern format such as WebP, which keeps quality at a smaller file size.
Load smartly
Small habits add up.
- Load images below the fold only when the visitor scrolls
- Give every image its width and height so the page does not jump
- Use the right size for phones instead of one large file for all
Describe them
Write short, accurate alternative text for each meaningful image. It helps people using screen readers and gives search engines context.

