Using Images in Web Design Without Slowing the Page

Published:
February 2, 2024
Updated:
November 24, 2026
On October 6, 2026, Google’s Chrome team announced that Chrome is shipping JPEG XL decoding starting from Chrome 155, and said the format offers 30 to 50% better compression than JPEG. For most small business sites, the format is not the problem.
The 2025 Web Almanac, built by HTTP Archive from July 2025 data, shows where the time goes. An image is the Largest Contentful Paint element on 76% of mobile pages, JPG still makes up 57% of LCP images, and about one page in six lazy-loads that main image. Only 62% of mobile pages score a good LCP, against 74% on desktop.
Your main image is what Google’s loading metric times
Largest Contentful Paint measures when the largest image, text block or video on the first screen finishes rendering; Google counts 2.5 seconds or less, at the 75th percentile of page loads, as good. Lazy-loading that image is the common mistake. In a 2022 web.dev analysis of Chrome field data, pages using lazy loading had a median 75th-percentile LCP of 3,546 milliseconds, against 2,922 without. The authors call it a correlation; in their WordPress tests, eager loading above the fold reversed the slowdown.
Chrome’s image priority guide sets the rule: never lazy-load the LCP image, give it fetchpriority=high, and keep lazy loading for images below the fold. The Almanac found fetchpriority=high on only 17% of mobile pages with an LCP image. If you are briefing a new site or a redesign, write the main image’s loading into the brief.
Pick formats browsers can decode, then cut the weight
Google’s Learn Images course dates AVIF support to 2020 in Chrome and Opera, 2021 in Firefox and 2022 in Safari, and Google Search supports both WebP and AVIF. Serve them through the picture element with a fallback image, such as a JPEG, in the src attribute, as Google’s image guidelines recommend.
Then check the weight. The Almanac’s page weight chapter found the median mobile home page used 911 KB of images, so look at how much of your industry’s search happens on a phone before shipping desktop-sized photos. Set width and height on every image, as Google’s layout shift guidance says; 62% of mobile pages had at least one image without them.
Alt text is for the person who cannot see the image
The 2016 version of this post told you to fill alt fields with keywords. Google’s image guidelines warn that keyword-stuffed alt text creates a negative user experience and may cause your site to be seen as spam. Google’s best example is four words: “Dalmatian puppy playing fetch.”
The same words serve screen reader users. Google’s accessibility course says to drop “image of” and hide decorative images from assistive technology, and warns that without alt text a screen reader may read out the file name. Put photos in real img elements, since Google does not index CSS background images. These are small on-page mistakes that cost traffic. If pictures bring you customers, make image search part of your SEO plan, and search part of how the site is built.
Show the real thing, and make sure you may show it
A stock photo of smiling strangers tells a visitor nothing about you. Photograph the actual product and the people who answer the phone; Google’s guidelines note that high-quality photos appeal to users more than blurry ones. Photos your customers post can do the same job, with written permission.
A stock license is a contract: read what it excludes before an image goes into an ad or onto packaging. With AI images, the US Copyright Office concluded in January 2025 that prompts alone do not make you the author, so you may have no copyright to enforce in an image you only prompted. This is not legal advice.
Run your homepage through PageSpeed Insights and see which element it names as the LCP. If it is lazy-loaded, fix that first.
Frequently Asked Questions
What size should images be on a website?
There is no single right pixel size; it depends on how wide each image displays in your layout. A sensible starting point is to export each image at the largest size it is shown, compress it, and use the srcset attribute, which Google’s image guidelines describe as a way to offer different versions of one image for different screen sizes. Set width and height so the page does not jump.
Should I use WebP, AVIF or JPEG XL?
AVIF and WebP are the safe modern choices: Chrome, Firefox and Safari all decode AVIF, and Google Search supports both. JPEG XL is newer to the web; Chrome’s team announced decoding support from Chrome 155 in October 2026 and recommends trying both AVIF and JPEG XL. Whichever you pick, serve it in a picture element with a JPEG fallback. For a small site, a sensible order is size first, then format.
Does alt text help SEO?
Yes, within limits. Google says it uses alt text with computer vision and the page’s content to understand an image, and alt text also works as anchor text when the image is a link. Keyword stuffing does not help; Google says it may cause a site to be seen as spam. Describe what a person would miss if the image failed to load: the product, the color, the action.
Can I use AI-generated images on my business website?
First check that the tool’s terms allow commercial use, then know what you own. Under the US Copyright Office’s January 2025 conclusions, prompts alone do not make you the author, though a person’s creative arrangement or modification of the output can be protected. Avoid generated pictures of a product that looks different from the real one; the image is a promise. This is not legal advice.



