Skip to content
Insights

Lighter websites

Accessible and Lighter: Where Good Design Agrees

Real text, fewer autoplaying elements, less motion and plain HTML help visitors with disabilities and often make pages lighter too. Where the two meet.

Sol Rudd6 min read

Diagram: two overlapping circles labelled Accessible and Lighter, with real text, a pause control and a tick in the shared area

Making a website easier for disabled people to use and making it lighter to download are usually treated as separate jobs, handled by different people at different times. In practice, a fair amount of the advice points the same way. The W3C's draft Web Sustainability Guidelines say they align with the Web Content Accessibility Guidelines (WCAG) “to ensure digital experiences are both accessible and sustainable”. They are a draft note, not a W3C standard, but the overlap is easy to see. Here are four places where one change helps on both fronts, and where you should be careful not to stretch the idea too far.

Real text, not pictures of text

Offers, opening hours and headlines are sometimes baked into a banner image. WCAG 2.2 success criterion 1.4.5 Images of Text (level AA) asks for real text instead wherever the same look can be achieved with text, with exceptions such as logos. The W3C explains why: people with low vision can then change the size, colours and spacing, and people with reading difficulties can restyle it to suit them.

Real text is usually just a few words of HTML, styled with fonts the page already loads, rather than a picture. If the banner image still needs to be there for its photograph, it can often be a smaller, simpler image with the words laid over it as text. Our guide to hero banners and sliders covers sizing that image.

Fewer things that start on their own

Carousels that rotate, background videos and animated adverts all start without being asked. WCAG criterion 2.2.2 Pause, Stop, Hide (level A) says that moving content which starts automatically, lasts more than five seconds and sits alongside other content needs a way to pause, stop or hide it. The W3C notes that some people with attention deficits or cognitive disabilities are distracted by continuous movement. For sound, 1.4.2 Audio Control asks for a way to pause or stop audio that plays automatically for more than three seconds, or to control its volume separately, partly because it makes screen reader speech hard to hear.

The weight side is just as direct. MDN's video element reference says the autoplay attribute takes precedence over preload, because the browser needs to start downloading the video to play it. A video that waits for a play button can wait to download too. Our article on video without the weight shows how.

Respect a request for less motion

Many phones and computers have a setting to reduce motion. Websites can read it with the CSS media feature prefers-reduced-motion. MDN explains that animations such as scaling or panning large objects can trigger discomfort for people with vestibular motion disorders, and the W3C's 2.3.3 Animation from Interactions (level AAA) lists dizziness, nausea and headaches among the reactions.

Most of this is about behaviour, not bytes: toning down a CSS animation doesn't change what is downloaded. But there are places where it can. web.dev's article on prefers-reduced-motion suggests showing an animated GIF, WebP or AVIF only when the visitor has no motion preference, with a still image otherwise, and lists refraining from autoplaying videos as part of a reduced-motion version. Better still for both goals: question whether the animation needs to be there for anyone.

Plain, well-structured HTML

Headings, lists, buttons and links built with the right HTML elements are the backbone of an accessible page. WCAG 1.3.1 Info and Relationships (level A) asks that structure shown visually, such as headings and lists, is also present in the code, so assistive technology can use it.

MDN's guide to HTML and accessibility points out that a real <button> comes with keyboard support built in, while a clickable <div> needs extra work to rebuild it. It also says semantic HTML is “arguably lighter in file size than non-semantic spaghetti code”. That is a modest claim, and we'd keep it modest: the bigger weight savings tend to come from what page builders and plugins add on top. Our article on unused CSS and page builders goes into that.

Where the overlap ends

  • Never cut accessibility to save bytes. Alt text, captions and transcripts are what make images and video usable for many people. If a choice ever seemed to set the two goals against each other, accessibility should win.
  • Lighter isn't automatically accessible. A tiny page can still have poor contrast, missing labels or a keyboard trap. A lighter page needs its own accessibility check.
  • Keep informative images. The advice is to stop putting text into images, not to remove useful photos. Make those lighter instead; see image weight, the quickest win.

When you've made changes, check the page again and compare the bytes measured with your earlier report. Remember that a GreenTracer check loads the page once without scrolling or clicking, so it reflects what downloads straight away.

Sources

All articles

Check your own site

See the estimated carbon of one page view on your page, its grade, and whether your host is listed as green. It's free.

Check a website