webdev-infra
webdev-infra copied to clipboard
Policy/linting for {% Video %} tag embeds?
The {% Video %}
embed being added to a docs page at https://github.com/GoogleChrome/developer.chrome.com/pull/2143 seems like it could lead to a bad experience for users:
- We allow an embedder to set
autoplay
regardless of the size of the underlying video. The video itself is 17.2mb, which is much smaller than an animated GIF would be, but still a much larger download that you'd expect when you visit a docs page. I believe our media uploader supports files up to 25mb. - We don't do anything that I can see to respect
prefers-reduced-motion
orprefers-reduced-data
.
Some of these might be addressable via code changes, and some might be addressable via linting rules (i.e. only allow autoplay when the video is is smaller than some threshold).
CC: @rachelandrew @devnook for visibility.
+1 to this. Linting rule for video smaller than certain threshold.