Illustrated steps: Reserve the right space; Choose a suitable placeholder; Handle first and later images differently
Steps: Reserve the right space; Choose a suitable placeholder.

An image placeholder fills space while the real asset loads. It can keep a page stable, but it can also flash, shift the layout, or make visitors think a blurred preview is the final content. The main goal is to reserve the correct geometry before the image arrives. Color or a low-resolution preview is secondary and should support, not hide, the loading state.

Reserve the right space

Know the aspect ratio for each image role: hero, card, gallery, and article figure. Give the browser width and height attributes or a stable CSS ratio before it fetches the file. Google's layout-shift guidance explains how dimensions let the browser reserve space. A generic rectangle with the wrong ratio can still jump when the real image appears.

If an editor may upload portraits and landscapes into one component, define how each fits the box. A fixed crop can stabilize cards but must not cut off meaningful content. A gallery that displays natural ratios can reserve space using metadata from each file. Save dimensions during upload rather than waiting until the browser decodes the image.

Choose a suitable placeholder

A plain background color is simple and costs little. A tiny blurred preview can suggest the scene, but it adds another file or inline bytes. A skeleton may make the loading state obvious, yet excessive animation distracts readers. Choose based on the actual delay and page design. On a fast first-screen image, a complex placeholder may be visible only as an unpleasant flash.

Match the placeholder's approximate brightness to the image if possible so the transition is calm. Do not use a low-resolution preview as a permanent fallback when the full file fails. Provide a meaningful error state or alt text for an image that cannot load.

Handle first and later images differently

The main image at the top of a page should load promptly. Hiding it behind a long fade or lazy-loading it can delay useful content even when the file is optimized. Images below the fold can wait, with their slots already reserved. Check whether a slider or carousel preloads many full-size assets while showing only one placeholder; that defeats the intended saving.

Keep dimensions in responsive variants consistent with the same composition. If the mobile version has a different crop ratio, the reserved box should change with the breakpoint before loading. Test rotation and resize, not just initial page load.

Check accessibility and motion

A decorative skeleton should not be announced as the content itself. The real image needs appropriate alt text according to its role. If a loading indicator communicates status, make it understandable without relying only on a shimmer effect. Respect reduced-motion preferences for animated placeholders and avoid rapidly flashing transitions.

Test keyboard navigation while an image is pending. The page should not suddenly move the focused control when the file appears. Read the page with images disabled to see whether essential text remains available.

Measure on the published page

Use a cold load on a phone-like connection, then a warm load. Watch for layout movement, a blurred placeholder lingering after a failed request, and the first useful image timing. Compare screenshots before and after a candidate change. A smaller file from ANK PicPress image compression may shorten the placeholder's lifetime, but it cannot compensate for a wrongly sized box. The best placeholder is almost unnoticed because the page remains stable and the real image arrives at the right moment.

Try your own images

Start with a few real files, review the visual result, and then scale up to the rest of your site.