2.15 Take a More Sustainable Approach to Image Assets
Of all the data that comprises the largest over-the-wire transfer rates within the average website or application, images are usually those that are responsible due to their quantity and usefulness. As such, doing all you can to reduce their size and unnecessary loading will be beneficial for sustainability.
Criteria
- Need For Images: The need for images has been determined considering the quantity, format, and size necessary for implementation.
- Optimize Images: Resize, optimize, and compress each image (outside the browser), offering different sizes (for each image) for different screen resolutions.
- Lazy Loading: Provide Lazy Loading to ensure image assets only load when they are required.
- Sizing And Deactivation: Let the visitor select the display size, and provide the option to deactivate images.
- Management And Usage: Set up a media management and use policy to reduce the overall impact of images, with criteria for media compression and file formats.
Impact
High
Effort
Low
Benefits
- Environmental:
Image assets often make up the largest part of a web page’s overall size. Compressing and delivering them in lightweight formats that improve the user-experience can often reduce the hardware burden on older devices. This in turn can reduce overall consumer e-waste by reducing forced upgrade cycles. - Social Equity:
Lightweight images work better for visitors in low-bandwidth areas and on older devices, as long as the device can support the formats used. - Accessibility:
Delivering images in ways that are meaningful to visitors improves access to information. - Performance:
By optimizing your images, you can significantly speed up your website in terms of HTTP requests, data transfer, and even in some cases the physical rendering effort – all of which have an impact on a visitor’s user-experience and speed of access. - Economic:
Visitors with data caps will benefit from optimized resources as they will be able to consume more content, and hosts of content will endure smaller bills due to lower overheads.
GRI
- materials: High
- energy: High
- water: High
- emissions: High
Example
- Code:
<img src="image.jpg" alt="..." loading="lazy"/> <iframe src="video-player.html" title="..." loading="lazy"></iframe>
- Lazy loading.
Resources
- 20 ways to make your website more energy efficient
- Avoid using bitmap images for the interface
- Digital Eco-Design: Images
- Dithering Images
- Fast load times: Optimize Your Images
- Favor CSS over images
- Focus Mode
- Greening The Web: A Study On Low-Carbon Image Formats
- [GPFEDS] 1.9 – Strategy (Interoperable Technologies) (PDF)
- [GPFEDS] 4.1 – UX and UI (Autoplay) (PDF)
- [GPFEDS] 4.7 – UX and UI (Media Choices) (PDF)
- [GPFEDS] 5.1 – Content (Image Suitability) (PDF)
- [GPFEDS] 5.2 – Content (Image Compression) (PDF)
- [GPFEDS] 6.4 – Front-End (Image Dimensions) (PDF)
- [GR491] 2-4008 – Image Compression
- [GR491] 2-4009 – Meaningful Images
- [GR491] 2-4010 – Image Avoidance
- [GR491] 2-4011 – Text Replacement
- [GR491] 7-5050 – Sizes and Formats
- [GR491] 7-5053 – Convert and Resize
- [GR491] 7-5054 – File Compression
- [GR491] 8-3057 – Media Management
- [GR491] 8-3061 – Optimized Images
- [GR491] 9-5068 – Lazy Loading
- Green by Default
- GreenIT (French) 023 – Préférer les CSS aux images
- GreenIT (French) 030 – Préférer les glyphs aux images
- GreenIT (French) 034 – Ne pas redimensionner les images coté navigateur
- GreenIT (French) 036 – Optimiser les images vectorielles
- GreenIT (French) 037 – Utiliser le chargement paresseux
- GreenIT (French) 080 – Optimiser les images
- How can we design sustainably?
- How to Build a Low-tech Website?
- How to Optimize Images for Faster Load Times and Sustainability
- How UX design can help tackle climate change
- Image Carbon
- Lazy loading
- Learn Images
- Modern way of serving images
- OpQuast 114 – Thumbnails and previews are not larger images resized on the client side.
- Reduce the weight of a web page: which elements have the greatest impact?
- Resize images outside the browser
- Sustainable UX is more than reducing your website’s footprint
- Sustainable Web Design
- UI Tools
- Web Almanac: Sustainability
- Why Web Designers Need To Think About Sustainable Web Design
- World Wide Waste