Sustainable Web Design: Measure Page Weight, Carbon Intensity, and Browser Energy

| 5 min read

The web’s environmental footprint is difficult to measure directly, but teams can still make better design decisions with metrics they can observe. Page weight indicates how much data a visit moves; electricity carbon intensity helps estimate the emissions tied to that energy; and browser tools can reveal how much work a site asks of a visitor’s device. Together, these measures turn sustainable web design from a broad aspiration into something teams can benchmark and improve.

That shift depends on expectations. For years, many elite runners believed a mile under four minutes was beyond human ability. Roger Bannister challenged that assumption on May 6, 1956, running 3:59.4 in cold, wet conditions in Oxford, England. His record lasted 46 days before Australian runner John Landy beat it. A year later, three runners broke the barrier in one race. Since then, more than 1,400 runners have officially run a sub-four-minute mile; the record is 3:43.13, held by Morocco’s Hicham El Guerrouj.

The lesson for web teams isn’t that websites have a single finish line. It’s that visible examples can reset what people consider achievable. Establishing credible measures for digital emissions gives teams a way to challenge the assumption that growing pages and heavier applications are inevitable.

Start with the data a visit transfers

Unlike cars or homes, websites and apps don’t have widely adopted environmental performance standards. Measuring their emissions directly is also difficult: electricity is consumed across data centers, telecommunications networks, and end-user devices, often in different places and on different grids. There’s no simple way to trace the electricity used for a particular visit back to every power station involved.

When direct measurement isn’t available, teams can work with useful indicators. Two central factors are the amount of data transferred and the carbon intensity of the electricity powering the systems involved. For web pages, transfer size is a practical starting point. Researchers often use kilowatt-hours per gigabyte (kWh/GB) to describe the energy associated with moving data. More transferred data generally means more energy used across data centers, networks, and devices.

A page’s transfer size on a first visit is commonly called its page weight. It can be checked in a modern browser’s developer tools, while hosting dashboards may report total transfer alongside visits. Dividing transfer by visits gives an average amount of data per visit, which can help teams track efficiency over time.

Fig 2.1: The Kinsta hosting dashboard displays data transfer alongside traffic volumes. Dividing transfer by visits gives average data per visit, a useful efficiency measure.

Page weight separates the efficiency of a page from fluctuations in its traffic. That makes it a useful basis for comparison: teams can set a target against an industry benchmark, a competitor, or the site they’re replacing. A budget should be treated as a ceiling, much like a performance budget. If a team’s most efficient competitor has a certain page weight, matching it sets one threshold; aiming lower sets a more ambitious one.

The scale of the challenge is visible in historical data. By early 2020, the median page weighed 1.97 MB on desktop and 1.77 MB on mobile, according to the HTTP Archive categories. Desktop page weight had risen 36 percent since January 2016, while mobile page weight had nearly doubled (HTTP Archive data). Images accounted for roughly half of transferred data, making them the largest single source of page weight on an average site.

These figures also show why progress shouldn’t be assumed. Infrastructure such as data centers and transmission networks may become more energy efficient, while websites themselves have tended to grow heavier. Page weight budgets can help teams counter that pattern during design and development, when choices about images, scripts, and other assets are still open.

Fig 2.2: Historical page weight data from the HTTP Archive offers a reference for what web pages could weigh.

Speed and efficiency overlap, but they aren’t interchangeable. A site can feel fast because it prioritizes what appears first, while still transferring a large amount of data. Transfer size is a more direct, comparable measure for sustainable design, though it remains an indicator rather than a direct reading of energy use or emissions.

First-visit page weight is only one scenario. Repeat visitors may already have assets stored in their browser cache, and people moving between pages may not need to download shared elements such as headers and footers again. Measuring transfer in these situations can show how efficiently a site serves regular visitors and support budgets that reflect more than a first load.

Account for where the electricity comes from

Reducing transfer can reduce energy demand, but the emissions associated with that energy depend on its source. Carbon intensity measures the grams of carbon dioxide produced per kilowatt-hour (gCO2/kWh). Renewable energy and nuclear power have very low carbon intensity—under 10 gCO2/kWh when construction is included in the cited estimates—while fossil fuels are much higher, at roughly 200–400 gCO2/kWh (Carbon Brief; Volker Quaschning).

A web service can draw on several electricity grids at once. Someone in Paris might access the site using a device and home internet powered by France’s grid, while the site’s data center runs in Dallas on electricity from the Texas grid. Network infrastructure along the route adds further locations to consider.

Teams have limited influence over the full chain, but they can choose where to host a project. A data center’s location affects the carbon intensity of the electricity used there. Tomorrow, a Danish startup, publishes user-contributed grid data through its electricityMap. The cited comparison shows that a data center in France could have lower emissions than one in the Netherlands.

Fig 2.3: Tomorrow’s electricityMap displays live estimates of electricity carbon intensity by country.

Location involves a trade-off. Hosting in a lower-carbon region can reduce emissions from data center electricity, but longer routes require more energy to transmit data. The source calls this distance “megabyte miles”: a useful reminder to weigh the data center’s electricity mix against its distance from the site’s main audience.

Analytics can identify where a site’s core users live, and teams can estimate the distance between that area and their host’s data center. The result is approximate; neither the center of a user base nor a data center’s precise location may be known. Still, it can reveal when a hosting region is far from the people a site serves. A site hosted in London with most users on the US West Coast, for instance, could examine the roughly 5,300-mile London-to-San Francisco distance and consider hosting closer to its audience. Shorter routes can also reduce latency.

Translate efficiency into estimated emissions

Combining energy estimates with electricity carbon intensity provides a way to estimate a site’s emissions. The Website Carbon Calculator, a tool created by the author’s team, measures data transferred when a page loads, estimates the associated electricity, and converts that estimate into a CO2 figure. It also accounts for whether the hosting provider uses renewable energy.

Teams seeking figures tailored to their own projects can use the book’s Energy and Emissions Worksheet. Once emissions can be estimated, a team can set a carbon budget as well as a page weight budget. Carbon connects the measurement more directly to the environmental goal, though kilobytes and megabytes are often easier to interpret when evaluating specific design choices.

Fig 2.4: The Website Carbon Calculator presents Riverford Organic’s estimated emissions and notes that its data center uses renewable energy.

Watch the work happening in the browser

Transfer size provides a broad proxy for energy across data centers, networks, and devices, but it can’t show which part of the system is doing the most work. Browser activity offers one closer view of the end-user device.

Modern CSS and JavaScript can shift more computation from servers to phones, tablets, laptops, desktops, and smart TVs. Frameworks such as Angular and React can place some or much of an application’s processing in the browser. That can enable richer interfaces, but it also increases the work a device must do. High processing demands may drain batteries and make a site harder to use on older or slower hardware. If demanding software pushes people to replace devices sooner, it can also add cost for users with fewer resources.

Measuring browser energy precisely remains difficult because devices vary widely and available tools are limited. Safari’s developer console includes an Energy Impact monitor that reports CPU use and how long the processor stays busy while a page loads. It doesn’t provide a precise electricity reading, but its rating can help teams compare versions and track improvement.

Fig 2.5: Safari’s Energy Impact monitor, shown at right, indicates a website’s CPU energy impact.

These measurements work best as a set. Page weight helps teams control transferred data; grid carbon intensity and hosting location shape the emissions estimate; browser monitoring adds a view of device workload. None gives a perfect account of a site’s full footprint, but each can guide specific design and infrastructure choices. The practical next step is to establish a baseline, set budgets the team can track, and use each release to make the service lighter on both networks and the devices people rely on.

Source: by · alistapart.com