Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.72 KB

BP_030_en.md

File metadata and controls

44 lines (29 loc) · 1.72 KB

Prefer glyphs over images

Identifiers

GreenIT V2 V3 V4
20 18 30

Categories

Life cycle Tiers Responsible
3. Implementation Network UX/UI Designer

Indications

Priority Implementation difficulty Ecological impact
4 3 4
Saved resources
Storage / Network / Queries

Description

Glyphs are specific typographic characters included in fonts, like those included in operating systems. They can be used to replace monochrome images such as symbols or pictograms (chevron, triangle, point, square, astrological signs, etc.) up to illustrations allowing to:

  • Reduce bandwidth by reducing the website total size
  • Reduce the number of requests
  • Reduce the DOM complexity, especially with many SVG pictograms

Example

Excerpt from a font created via Font Forge to illustrate a landing page

A 91% size saving was achieved by including pictograms and vector illustrations in an icon font via Font Forge.

To go further: https://coding.smashingmagazine.com/2011/03/19/styling-elements-with-glyphs-sprites-and-pseudo-elements

Validation rule

The number of ... is equal to or less than
images that should have been replaced by glyphs (font symbol) 0