Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Website images work well when they communicate the right information, reserve their space before loading, and arrive at an appropriate size and priority. Review the actual markup and rendered page: a site may have some of these problems, not necessarily all ten. Fixes below cover accessibility, layout stability, responsive delivery, loading behavior, and verification.

1. Leaving meaningful images without useful alternative text

Write alternative text that conveys the information or action a reader needs from the image in that page context. Describe its purpose, not every visible detail, and do not repeat information already given in nearby text.

For an icon that performs an action, name the function—for example, “Search” or “Save”—rather than describing its appearance. A linked image should make the link’s purpose or destination clear. For a graph, convey the takeaway the reader needs, and provide a fuller equivalent when the underlying information is complex.

2. Adding noisy alt text to decorative images

If an image adds no information and is purely decorative, use an empty alternative: alt="". Assistive technology can then skip it instead of announcing irrelevant details. Do not omit the alt attribute when an empty value is the intended choice.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Using vague or keyword-stuffed alt text

Base alternative text on what the image does in context. A description is not better just because it is longer: avoid generic labels such as “image” and keyword lists that do not help someone understand the content or action. For a chart, express what the reader learns from it; for an image link, state what activating it does or where it goes.

The W3C Images Tutorial distinguishes informative, decorative, text, complex, grouped, and image-map cases. Use the category and the page’s purpose to decide what the alternative needs to communicate.

4. Omitting image dimensions and causing layout movement

Give an image its known intrinsic dimensions with width and height attributes, or use an equivalent strategy that reserves the correct aspect-ratio space. The browser can use that information before the file arrives, helping prevent surrounding content from jumping as the image loads. Responsive CSS can still scale the image to fit its container.

<img src="/images/article-cover.jpg" alt="A gardener planting seedlings" width="1200" height="800">

Here, the attributes describe the source image’s dimensions; they do not require it to render at 1200 pixels wide. Check that the aspect ratio matches the file. Incorrect dimensions can reserve the wrong space and cause a shift when the image is displayed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Sending the same oversized image to every device

Offer a set of image candidates and let the browser choose one suited to the device and expected display width. Use srcset to list candidate files and sizes to describe the anticipated layout slot width. sizes does not set the image’s CSS-rendered size; CSS still controls the layout.

<img
  src="/images/article-800.jpg"
  srcset="/images/article-400.jpg 400w, /images/article-800.jpg 800w, /images/article-1200.jpg 1200w"
  sizes="(max-width: 600px) 100vw, 800px"
  width="1200"
  height="800"
  alt="A gardener planting seedlings">

The candidate widths and the sizes expression should reflect the actual assets and page layout. Three to five variants are common, not a universal requirement; more variants can add storage and markup complexity. The web.dev responsive images guide explains candidate selection and sizing.

6. Treating image format as a universal choice

Choose a format and compression level according to the image content, delivery requirements, and acceptable visual quality. A photograph, transparent graphic, and sharp-edged illustration may have different needs. Where useful, provide format alternatives and a fallback appropriate to the browsers and delivery path you support.

Compare the rendered quality as well as file size. There is no single best format or universally supported savings percentage for every image. If you generate variants automatically, tools such as Sharp or ImageMagick can be part of a build-time workflow; Thumbor and Cloudinary are examples of image-service approaches. These are options, not a tested ranking. See web.dev’s responsive image guidance for the delivery trade-offs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

7. Lazy-loading an image the reader sees immediately

Lazy loading is for images that are below the fold and unlikely to be needed at the start of the visit. Do not apply loading="lazy" to the prominent above-the-fold image that serves as the page’s Largest Contentful Paint (LCP) element. Delaying its request until layout or scrolling can postpone discovery and harm LCP.

<!-- An offscreen image can be lazy-loaded -->
<img src="/images/related-story.jpg" alt="A trail through a forest" loading="eager" width="900" height="600">

Decide based on where the image appears and its role, not on a blanket rule applied to every image. See web.dev’s browser-level lazy-loading guidance.

8. Failing to prioritize an important hero image

Keep the LCP image discoverable in the initial HTML where practical. For one genuinely important image, fetchpriority="high" can hint that the browser should prioritize the request:

<img src="/images/hero.jpg" alt="A coastal town at sunset" width="1600" height="900" fetchpriority="high">

Use the hint sparingly. Marking many images high priority can make them compete with other important resources. If the image is a CSS background or otherwise not discoverable from initial markup, consider a carefully targeted preload instead of adding broad priority hints. Validate that the browser discovers the intended asset early and assigns it an appropriate priority. The LCP guide covers discovery and priority considerations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

9. Putting essential words or complex information only in an image

Use actual text in the page when text can serve the purpose. Text embedded in an image is harder to resize, search, translate, and access; if it must be there, include the same words in the text alternative. For a complex chart or diagram, provide a complete text equivalent of the data or detailed information conveyed, rather than relying on a brief label alone.

The W3C Images Tutorial describes approaches for text and complex images.

10. Changing image code without checking the effect

After changing markup, sizing, format, or priority, inspect the page in browser developer tools. In the Network panel, check when the image request starts, which candidate the browser downloads, and the request’s priority. Confirm that the LCP image is not lazy-loaded, that the selected candidate fits the rendered slot, and that the image’s reserved dimensions prevent layout movement.

Use a lab test to inspect a controlled page load and field data to understand real-user experience where available. These answer different questions; a lab result does not establish how every visitor experiences the page. Test the specific change you made rather than assuming it improved performance or a score. The LCP guide recommends checking discovery and priority as part of optimizing the page.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Class Record Book for 9-10 Weeks. 50 Names. Smaller Size 7" x 11" (R9010)
  • 8 1/2 x 11 Teacher Record Book with Teacher's daily schedule
  • Special duties
  • Supplementary data sheets
  • Grade recording sheets for 40 weeks with shading every other two lines
  • Perforated grade recording sheets - write the class list only once
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to make image changes safely

  1. Inspect the content and context. Decide whether each image is informative, decorative, a control, a link, or a complex visual. Set its alternative text accordingly.
  2. Check its layout space. Verify intrinsic dimensions or an equivalent aspect-ratio reservation, then confirm responsive CSS still gives the intended rendered size.
  3. Check delivery choices. Compare image candidates and formats against the actual slot, device needs, visual quality, and the extra storage or markup your variants require.
  4. Check loading behavior. Lazy-load appropriate offscreen images; keep the LCP image discoverable and use priority hints only where justified.
  5. Verify the browser’s behavior. Inspect the selected resource, request start, priority, and layout in developer tools, then test the specific page change.

Or skip the browser setup

For a screenshot of the rendered page to inspect a visual change, ScreenshotNeo provides a one-request API. For example, this cURL command saves a WebP screenshot of a page; replace the URL with the page you want to capture and provide your API key:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. Its capture can accept cookie banners and remove known consent platforms, newsletter popups, and chat widgets before the shot; those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, with response headers indicating the page verdict and billing status. ScreenshotNeo also has an MCP server with screenshot, page-info, and PDF-capture tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

Sign up free for 1,000 screenshots a month, with no card.

Frequently Asked Questions

Does adding width and height attributes prevent all layout shifts?

No. They help reserve image space when the dimensions and aspect ratio match the asset; other page elements can still cause layout shifts.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do I need to create exactly three to five responsive image sizes?

No. That range is common, not a fixed rule. Choose candidates that suit your layouts and balance delivery fit against storage and markup complexity.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Bestseller No. 5
Class Record Book for 9-10 Weeks. 50 Names. Smaller Size 7' x 11' (R9010)
Class Record Book for 9-10 Weeks. 50 Names. Smaller Size 7" x 11" (R9010)
8 1/2 x 11 Teacher Record Book with Teacher's daily schedule; Special duties; Supplementary data sheets
$11.60

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.