Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 801 Bytes

File metadata and controls

34 lines (19 loc) · 801 Bytes

Autplaying media loads data that may not be consumed by the user (sustainable/avoid-media-autoplay)

Streamed media content represents a large portion of data transmitted over the internet. By not defaulting to autoplaying media, the climate impact of this can be minimised.

Rule Details

This rule aims to...

Examples of incorrect code for this rule:

<video autoplay />
<video autoplay={true} />

Examples of correct code for this rule:

<video />
<video autoplay={false} />

When Not To Use It

If the media is the main reason a user visits this page, it can be assumed that loading the data will improve the user experience.

Further Reading

Web Sustainability Guidelines