---
title: "Tech Tip #50: Put your page's footprint in the footer"
description: "What if every page told you its own carbon cost?"
url: https://greencode.ai/tech-tips/50-show-your-page-footprint/
---

# Tech Tip #50: Put your page's footprint in the footer

**What if every page told you its own carbon cost?**

[Watch the video](https://media.greencode.ai/shorts/show-your-page-footprint-2a00d917b1cc.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Page weight creeps up because nobody sees it. A number on every page keeps the team honest.

### The fix you can use today

- Add CO2.js to estimate a page view's transfer size and CO2e.
- Show it where the team (and visitors) will see it.
- Treat it like a performance budget: a heavier page is a regression.

GreenCode shows the data size and carbon of every page in its own website's footer.

### Tools that help

- [CO2.js](https://developers.thegreenwebfoundation.org/co2js/overview/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) (Green Web Foundation): an open-source library that turns bytes transferred into an estimate of CO2, using the Sustainable Web Design model
- [GreenFrame](https://github.com/marmelab/greenframe-cli?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): measures the footprint of a web application's user scenarios and enforces carbon budgets in CI

### How GreenCode helps

GreenCode helps tackle this by keeping its own pages light and showing each page's data size and carbon in the footer. Static pages, WebP images, scripts only where they are used and purged styles cut a first view of the home page from 6.8 MB to 1.7 MB. [More on this](https://greencode.ai/green-hosting/).

### Tags

#web-performance#measurement#javascript

### Sources

- [Green hosting: how the footer figure is calculated with CO2.js and the Sustainable Web Design model](https://greencode.ai/green-hosting/)
- [Green Web Foundation, CO2.js overview: carbon budgets in deployment checks](https://developers.thegreenwebfoundation.org/co2js/overview/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#50**
- For **Developers**
- Category **Web and front-end**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
