Troubleshoot Webflow

Webflow images too large on mobile

A phone downloads a desktop sized image. Webflow will automatically generate smaller versions, but only for certain types of image.

Possible issues

  • A speed report states the images are larger than they need to be.
  • The biggest image on a phone takes ages to load.
  • DevTools shows a file which is vastly bigger than the space it actually occupies.
  • A background image is the same file on a phone as it is on a desktop.

Check these in order

Investigate in this order. Usually an issue will be identified within the first couple of steps.

  1. 1

    Find the file that the phone downloads

    Open the published page in Chrome, turn on Device Mode and then go to the Network tab and filter to images. In the Console, select the image in the Elements panel and type $0.currentSrc to see the URL the browser has selected. currentSrc is the URL the browser has selected from the image’s srcset.

  2. 2

    Check the type of image

    The Webflow responsive images page states that it creates variants for inline JPG, PNG and WebP images. It does not create them for background images or for images within rich text elements. It doesn’t say anything about AVIF images so after converting to AVIF you’ll need to check currentSrc again.

  3. 3

    Check how the image got into Webflow

    Variants are only created when you upload an image into the Assets panel or a CMS image field. Images uploaded via CSV import, via URL or via the API don’t get any variants. Upload those again directly into Webflow.

  4. 4

    Check the original

    Webflow can generate up to seven variants (3,200, 2,600, 2,000, 1,600, 1,080, 800 and 500px wide) from an original wider than 3,200px and fewer from a smaller original. Images must be under 4MB. If your original is already sufficiently compressed then Webflow will just use it as is. Export at approximately twice the widest size that you display (no more). The site usage dashboard will flag any images that are over 2,000px on either side.

  5. 5

    Look for “Disable responsiveness”

    Select the image, go to Settings, Image settings and ensure that “Disable responsiveness” is off.

  6. 6

    Re-measure after a style change

    Webflow measures images in their normal state (not their hover or interaction state). After you’ve changed a class/component you’ll need to Cmd+Shift+I (Mac) or Ctrl+Shift+I (Windows) to scan and re-measure all pages and then publish. You may need to set the image width to 100% to override how sizes sets its size.

  7. 7

    Handle background images separately

    Webflow doesn’t create variants for them. So a phone will download the exact same file as a desktop. Upload a smaller image and then set a different background image at each breakpoint.

  8. 8

    Convert and set loading

    In the Assets panel you can convert JPG and PNG images to AVIF or WebP via Compress. The conversion will replace the original so you can’t go back, hence you should download your originals first and then publish. Set your hero image to Eager so it loads with the page and set the images below the fold to Lazy.