Medium impact ๐ฟ
HTML semantics are important. They don't just play a key role in making the Web look the way it does, they have a function in accessibility, in SEO, and even in sustainability. Ensuring that you markup your content correctly and avoid cluttering your markup wastefully will reduce emissions.
Ensure content is marked up semantically using the right HTML element for the right job.
Consider removing optional HTML tags (which aren't required for rendering), attribute quotes, or attributes that are set to their default value.
Avoid using non-standard elements or attributes.
Only use custom elements or Web Components if you cannot utilize native HTML elements or if you need tightly regulated control over the implementation of design system components.
๐ฆพ๐ฆพ
High impact ๐ฟ
Whether advertising, chatbots, maps, or other tooling; outsourcing your service to a third-party provider may be potentially useful in certain scenarios in reducing design or development time and redundancy (which can be a win for sustainability). Third-party services, however, come with issues, such as the lack of control over emissions, and they often can potentially suffer from latency and large file sizes which may not exist if you self-hosted or created the material.
Assess third-party services (including plugins, widgets, feeds, maps, carousels, etc) as early in the ideation or creation process as possible and use as few as possible to reduce the product or service's overall ecological impact, including Scope 3 emissions.
Third-party content (including plugins, widgets, feeds, maps, carousels, etc) should be placed behind a click-to-load delay screen (using the "import on interaction" pattern), while alternatives to automated solutions such as chatbots should be offered.
Large CSS libraries and JavaScript frameworks should only be used if a more performant alternative which achieves the same goal cannot be used instead.
Prioritize self-hosted content over embedded content from third-party services.
Create your own clickable icons and widgets, rather than relying on third-party services to host or allow embedding within your product or service.
๐ฆพ๐ฆพ
Medium impact ๐ฟ
When providing the option to download, save, print, or access anything online, defaulting to the most lightweight, least featureful version will reduce emissions through passive browsing; with non-essential information removed from the screen either to be shown when it's required or eliminated.
Prioritize performance optimization as a product or service's default approach.
The path taken to access the service (the initial contact with the website or service) should be as efficient and as simple as possible (time required to complete an action displayed, reducing too much choice, ensuring visitors know what's required at the start of a complex set of steps, etc).
Make your user-journey (when browsing an accessed website or service) as smooth as possible. User-research is key, as is building on established design patterns which people already understand.
Visitors can complete tasks without distractions or non-essential features getting in the way.
Visitors see only information that is relevant to their experience, without non-essential information being displayed on the screen.
Ensure that actionable information such as pop-up or modal windows can only be initiated by the visitor.
๐ฆพ๐ฆพ
Medium impact ๐ฟ
Languages evolve regularly, and it's important for security and performance reasons to keep on-top of the technology stack you are using.
Use the latest build of your chosen syntax language and its coupled framework.
๐ฆพ๐ฆพ
Medium impact ๐ฟ
Media, images, fonts, and documents enrich the Internet. The problem is that people may not want to watch a video, listen to an audio file, look at an image, or use a specific application. By providing alternative formats to anything you embed, you ensure the widest possible audience can benefit from it (and reduced carbon output will occur as alternative text will induce less consumer hardware thrashing than its rich media alternative).
All proprietary file formats (such as PDF) should also be offered in HTML for accessibility and to ensure future availability.
All custom typefaces (using font-display) should be subsetted and offered as part of a font stack with a system font as a backup.
All images should provide meaningful alternative text for screen reader users (or when images fail to load) accessibility.
Audio should provide text transcripts of conversations as an alternative to playing the media.
Video should provide text transcripts (at minimum), subtitles (using WebVTT), and for accessibility best practice, offer closed captions and sign language options.
๐ฆพ๐ฆพ
Low impact ๐ฟ
The Web is full of dead, often proprietary code, created using standards which have been superseded or by groups which aren't recognized. By following recognized coding standards, you ensure that your code will be rendered properly by browsers (and reduce the potential for added emissions occurring from unmaintained rendering processes).
Upgrading or avoiding deprecated formats is important, the only exception being if consumer support demands maintaining older standards to provide a functional product.
Don't use an older standard if a newer recommendation will do the same job as or more effectively.
๐ฆพ๐ฆพ
Medium impact ๐ฟ
Redundancy is the enemy of sustainability. Having systems in place to ensure that everyone can work from established patterns, the website or application remains clean and easy to use, and iteration over redesign is firmly in the mindset that will help promote sustainable practices. It's also worth being wary of abstracting code too early (see AHA methodology) or incorrectly, as while good abstractions can be more efficient, poor ones can waste effort and introduce complexity, bloat, and bugs to your codebase which can lead to emissions.
Don't be afraid to remove or simplify (through rewriting for performance) your code to focus on essential features and have a cleaner, less redundant product (and codebase).
Improve (iterate) an existing creation rather than constantly redeveloping and redesigning products from scratch (duplication of coding effort) if possible to reduce visitor learning burden and developer impact.
Within CSS and JavaScript, use methodologies (like BEM) and systems like DRY and WET to optimize the arrangement and output of your source code.
๐ฆพ๐ฆพ
High impact ๐ฟ
Not everyone can access services equally, being sustainable is also about being accessible, fair, ethical, and ensuring that your product or service doesn't discriminate. As such, ensuring your website complies with best-practices and relevant laws whilst meeting the needs of your visitors is critical as well as good business.
Your website or application must conform to WCAG (at the necessary level), plus extend beyond to obey relevant laws and meet additional visitor accessibility requirements. Building inclusively means that people with permanent, temporary or situational disabilities will be able to more quickly find what they are looking for, and not have to spend extra time searching for a way to use your product or service.
Enhance your website or application with Accessible Rich Internet Applications (ARIA) ONLY if applicable or necessary, and accessibility enhancing features when useful or beneficial.
Deploy solutions which fight against electronic inequalities in products and services.
๐ฆพ๐ฆพ