Sustainable Image Assets

Last modified by Manuel Leduc on 2025/02/21 16:44

 XWiki
 Feature
 Idea
 
 
No

Description

Related to W3G sustainability guideline Take a More Sustainable Approach to Image Assets.

Ideas

Incentivize users to avoid uploading large artifacts

Pros:

  • reduced disk usage

Cons:

  • additional step for the user if done badly

Introduce images lazy load

The idea is to introduce the loading='lazy' attribute on as many images as possible, to prevent images that will never been seen by the user to be loaded.

Pros:

  • reduced network use

Cons:

  • additional rendering complexity
  • might require to add a new option in the image UI to force the loading to be eager for some images

Introduce image srcset

The idea is to introduce srcset attribute on images of the content so that even when images larger than the user's viewport, a image adapted to the browser size is loaded. This allows to save bandwidth in case of 1) large images 2) small screens

Pro:

  • reduced network use

Cons:

  • additional rendering complexity

 


Get Connected