Skip to main content
Crayons and Code

Image and video performance

Most slow pages are slow because of media. Use this checklist before you upload anything and your site stays fast by default.

Why this matters

Images and video are often the largest files on a page. They also trigger layout shift when the browser does not know how much space to reserve.

Fixing media after upload is possible, but it is slower and more expensive than doing it right up front.

Before you upload an image

1) Choose the right dimensions

Do not upload a 4000 pixel photo to display it at 600 pixels wide.

2) Compress it properly

Compression is not optional. It is the easiest performance win you will ever get.

3) Make it responsive

Your users have different screen sizes and different connection speeds. Serve the right size for the device.

4) Prevent layout shift

Layout shift happens when media loads and pushes content around. It causes misclicks and frustration.

5) Write useful alt text

Alt text is part of performance too. It is a fallback for when images do not load, and it supports users using assistive technology.

Before you upload video

1) Decide if video belongs on the page

Video can improve engagement. It can also destroy landing page speed if it is used as a hero background.

2) Use a poster image

A poster image gives the user something useful immediately, without loading the full video.

3) Control loading

Do not load heavy video assets before the user decides to watch.

4) Provide captions or transcripts

Video accessibility matters. It also supports people in noisy environments and people who do not want to play audio.

A simple media policy for small teams

Policies remove guesswork and keep content consistent.

Next step

If your site feels slow, start by auditing media on the top landing pages. Reducing image weight and preventing layout shift often delivers the fastest improvements.