The Green Web Dev book
Foreword
What is this book?
Introduction
1.
The climate crisis
2.
The impact of web applications
3.
Measuring energy usage
4.
Pitching green initiatives
5.
Stay grounded
Making Web Apps Greener
6.
General Tips
6.1.
Adopt a data budget
6.2.
Support browsers sustainably
6.3.
Curate features responsibly
7.
Styles
7.1.
Create print-specific styles
7.2.
Employ responsive design
7.3.
Use webfonts responsibly
8.
Frontend Code
8.1.
Choose appropriate libraries
8.2.
Import efficiently
9.
Content
9.1.
Keep content concise
9.2.
Lazy load content
9.3.
Avoid excessive markup
9.4.
Use semantic markup
10.
Images
10.1.
Lazy load images
10.2.
Never use GIFs
10.3.
Resize images appropriately
10.4.
Use appropriate image formats
10.5.
Make use of modern image formats
11.
Backend Code
11.1.
Consider whether you really need a backend
11.2.
Choose a green host
11.3.
Optimise data queries
11.4.
Optimize your API
11.5.
Use the right kind of database
Appendix
12.
Appendix A: External Resources
13.
Appendix B: Useful Tools
Light
Rust
Coal
Navy
Ayu
Content