Large images can slow pages and consume mobile data. Choose dimensions appropriate to the displayed size, use modern formats where supported, and preserve visual quality. ## Step-by-step instructions 1. Identify the actual display dimensions for each image. 2. Resize oversized originals before uploading. 3. Export photographs as WebP or AVIF when the workflow supports them, with suitable fallbacks. 4. Use SVG for appropriate simple vector graphics. 5. Set width and height to reserve layout space and lazy-load below-the-fold images. 6. Compare file size and visual quality on a real device. ## Final checks - Test the result in a realistic situation before relying on it. - Keep a note of any settings or decisions that need future review. - Recheck the process when your tools, hosting, or requirements change.

Performance investigation checklist

  • Measure the page on a representative device and connection before changing code.
  • Identify whether delays come from server response, scripts, fonts, images, layout, or third-party services.
  • Resize media, reserve layout space, and defer non-critical resources.
  • Remove unused dependencies only after confirming required features still work.
  • Retest after each meaningful change under similar conditions.

Avoid optimisation by guesswork

Lab scores help diagnose problems but do not represent every visitor. Review field data where available and protect correctness, accessibility, and reliability while improving speed.