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

For faster, more accessible pages, serve image files sized for the visitor’s screen, use AVIF or WebP with a fallback, reserve space with image dimensions, prioritize the main image people see first, and write alt text according to each image’s purpose. Lazy-load only images that are not immediately needed. Then check performance, accessibility, and whether important lazy-loaded content is discoverable.

1. Choose an efficient format and provide a fallback

AVIF and WebP can reduce image file sizes compared with many JPEG and PNG files, but the right choice depends on browser support, your image pipeline, and whether the image needs transparency or lossless detail. A practical default is to offer AVIF first, WebP next, and a JPEG or PNG fallback. The browser selects a supported source; the fallback remains available if it cannot use the modern formats. Google Chrome’s guidance describes this format negotiation pattern.

Use JPEG for photographs when a modern format is unavailable in your delivery pipeline, and PNG where its lossless characteristics or transparency are needed. Do not convert blindly: inspect the result for artifacts, especially around text, fine lines, gradients, and transparent edges. Choose a quality setting that preserves the image’s purpose rather than targeting the smallest possible file.

Use picture for format alternatives

The <picture> element lets you list format alternatives while keeping one fallback <img>. The browser considers the sources in order and uses the first one it supports.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
<picture>
  <source type="image/avif"
          srcset="hero-400w.avif 400w, hero-800w.avif 800w"
          sizes="(max-width: 600px) 100vw, 50vw">
  <source type="image/webp"
          srcset="hero-400w.webp 400w, hero-800w.webp 800w"
          sizes="(max-width: 600px) 100vw, 50vw">
  <img src="hero-800w.jpg"
       alt="A developer reviewing a page on a laptop"
       width="800" height="600"
       fetchpriority="high" loading="eager">
</picture>

Ensure each listed file actually exists and depicts the same content. If a source URL fails, the browser may not automatically try another candidate from the same format list in every situation; monitor image delivery errors and keep your fallback healthy.

2. Deliver dimensions that fit the rendered image

An 1800-pixel-wide image is wasteful if it appears in a 360-pixel-wide column. Generate a small set of widths for each image and let the browser choose one based on the rendered size and display density. Responsive images are among the principal ways Lighthouse recommends avoiding delivery of more pixels than the page needs; an image CDN can automate resizing and format transformations. See Chrome’s properly size images guidance.

How srcset and sizes work

In a width-descriptor srcset, values such as 400w and 800w tell the browser the intrinsic width of each file. The sizes attribute estimates the image’s rendered width at different viewport sizes. The browser combines that estimate with screen density and its own loading decisions to select a suitable candidate.

<img src="article-800.jpg"
     srcset="article-400.jpg 400w,
             article-800.jpg 800w,
             article-1200.jpg 1200w"
     sizes="(max-width: 600px) 100vw,
            (max-width: 1000px) 80vw,
            700px"
     alt="A close-up of the finished wooden chair"
     width="1200" height="800">

This example says that the image uses the full viewport width up to 600 pixels, about 80% of the viewport up to 1000 pixels, and otherwise occupies a 700-pixel slot. Adjust those estimates to match your actual layout. If sizes claims a much wider slot than the design uses, browsers may download unnecessarily large files; if it claims a narrower slot, the image may look soft on high-density displays.

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.

Build or automate the image variants

You can generate variants during your build and maintain the file mapping yourself, or use an image CDN to resize and transform source files on request. Build-time processing gives you control and predictable output, but requires a workflow for generating, naming, and updating variants. A CDN reduces that manual work, though it introduces a third-party delivery dependency and its own configuration. MDN names Squoosh as a web app for converting images to WebP and AVIF: MDN multimedia images guidance.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

3. Prevent images from shifting the page

Set the intrinsic width and height on each <img>, even when CSS makes it responsive. The browser can calculate the image’s aspect ratio before the file arrives and reserve the right amount of space. Without that reservation, text and other content may jump when the image loads, contributing to cumulative layout shift (CLS).

<img src="product.jpg"
     alt="Blue ceramic mug viewed from the front"
     width="1200" height="900"
     style="max-width:100%; height:auto">

The dimensions should describe the source image’s actual aspect ratio, not the display size you happen to want. For art-directed images with different crops at different breakpoints, use dimensions and CSS that reflect the selected presentation. If image dimensions are not practical, reserve a stable box with CSS aspect-ratio and an appropriate fit rule.

Test on slow connections and narrow screens as well as on a desktop. A layout that appears stable after the image has loaded can still shift noticeably during the initial load.

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

4. Load the important image first—and defer the rest

Do not lazy-load an above-the-fold image or the page’s likely Largest Contentful Paint (LCP) image. The browser needs to discover and fetch that image promptly. Use normal eager loading for a critical image and consider fetchpriority="high" when it is genuinely the main visual resource. Avoid assigning high priority to many images: they would compete with one another and with other important page resources.

For images well below the initial viewport, native loading="lazy" lets the browser defer fetching them until they are near being needed. This can reduce early network work and shorten the critical rendering path. MDN describes native lazy loading and its use for noncritical resources at MDN’s lazy loading guide.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
<!-- Main image visible when the page opens -->
<img src="feature.jpg" alt="The completed garden plan"
     width="1200" height="800"
     loading="eager" fetchpriority="high">

<!-- Supporting image farther down the page -->
<img src="details.jpg" alt="Close-up of the planting labels"
     width="800" height="600"
     loading="lazy">

Do not add loading="lazy" indiscriminately to every image. It can delay an image needed for the initial view, including an LCP candidate. Conversely, eagerly loading a long gallery asks the browser to fetch content a visitor may never reach.

Keep lazy-loaded content discoverable

Important images should load when they become visible without requiring a click or other interaction. Google Search does not scroll or click through a page as a person would, so content that only appears after such interaction may not be discovered. Follow Google’s recommendations for fixing lazy-loaded website content: ensure content enters the viewport through normal scrolling and use mechanisms that Google can trigger or observe.

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

5. Write alt text for the image’s purpose

Alt text is a text alternative, not a caption or a place to repeat keywords. Ask what information or function the image contributes in its current context. W3C WCAG 2.2 Success Criterion 1.1.1 states: “All non-text content that is presented to the user has a text alternative that serves the equivalent purpose.” See the WCAG 2.2 standard.

Image purpose What to put in alt Example
Informative A concise equivalent for the meaningful information the image conveys. alt="Line chart showing monthly sign-ups rising from January to June"
Decorative An empty value, alt="", so assistive technology can skip it. alt=""
Functional link or control The action or destination, rather than a visual inventory of the image. alt="Search" for a search button represented by an icon

W3C’s Images Tutorial explains these informative, decorative, and functional categories. For an informative image, keep the alternative short while including text embedded in the image if that text is important to understanding it. W3C’s H37 technique describes providing a short text alternative with the alt attribute.

Context matters. A photo used as a link may need to describe the link’s destination or action, not every visible detail. If nearby text already communicates the same information and the image adds nothing, a null alternative can prevent needless repetition. Avoid using a filename, “image of” as a default opening, or a string of search terms.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

6. Validate speed, accessibility, and behavior

Check more than whether an image looks crisp on your own screen. Google’s good Core Web Vitals targets are LCP within 2.5 seconds, INP below 200 milliseconds, and CLS below 0.1. These are page experience metrics, not image-only scores; images can affect LCP through loading time and CLS through unreserved space. Google explains the metrics and thresholds in Understanding Core Web Vitals and Google search results.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Inspect delivery: confirm the selected file format, transferred size, and dimensions at mobile and desktop viewport sizes.
  • Check the initial view: make sure the main image is not delayed by lazy loading and does not wait behind avoidable work.
  • Watch layout stability: observe the page while images load, especially on a slow connection.
  • Review accessibility: verify informative, decorative, and functional images have appropriate alternatives.
  • Test scrolling and indexing behavior: ensure lazy images appear as they approach the viewport and do not depend on clicks.
  • Recheck after changes: a new crop, font, container width, or content order can change which image is largest or visible first.

MDN cites imagery as 51% of bandwidth for the average website in its multimedia guidance; treat that as a reported aggregate, not a prediction for every site. It also cites historical median image resource weights rising from approximately 250 KB to 900 KB on desktop and 100 KB to 850 KB on mobile between 2011 and 2019. Those figures describe historical context, not current universal benchmarks. See MDN’s image guidance.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

7. Troubleshoot common image problems

Images look blurry on a phone

Check that srcset includes a candidate large enough for the rendered width and device pixel density, and that sizes reflects the real layout. Verify that the browser is not being offered only a small source and that your CDN or build pipeline has not generated a low-resolution variant.

The page jumps when an image appears

Add accurate intrinsic width and height, or reserve the correct aspect ratio with CSS. Also check that responsive crops maintain a reserved ratio at every breakpoint.

The main image appears late

Remove lazy loading from the image visible at page open. If it is the LCP image, use eager loading and consider a high fetch priority for that image only. Check whether CSS backgrounds or JavaScript are hiding the image URL from early browser discovery.

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.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

A below-the-fold image never appears

Confirm its URL returns a valid image, the element has nonzero dimensions, and no script error prevents loading. Test by scrolling it into view. If search discovery matters, do not require a click to reveal it.

A modern format fails for some visitors

Check the type on each <source>, ensure the encoded file is valid, and keep a working JPEG or PNG in the fallback <img>. Inspect network responses for incorrect MIME types or missing assets.

Screen readers announce unhelpful text

Review each image in context. Replace filenames and redundant descriptions with a concise equivalent for informative images, use alt="" for purely decorative ones, and describe the action for icon buttons or linked images.

Or skip the browser setup

If you need screenshots to inspect how a page’s images render across URLs, ScreenshotNeo provides a website screenshot API and MCP server for developers. A single GET request returns a PNG, JPEG, WebP, or PDF. Its clean-shot workflow accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. An MCP server offers take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. See ScreenshotNeo.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

For setup and request options, see the ScreenshotNeo API documentation. Free includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. The free account is available at ScreenshotNeo sign-up.

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.