webdev-infra icon indicating copy to clipboard operation
webdev-infra copied to clipboard

Policy/linting for {% Video %} tag embeds?

Open jeffposnick opened this issue 3 years ago • 2 comments

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 or prefers-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).

jeffposnick avatar Feb 18 '22 16:02 jeffposnick

CC: @rachelandrew @devnook for visibility.

jeffposnick avatar Feb 18 '22 17:02 jeffposnick

+1 to this. Linting rule for video smaller than certain threshold.

jecfish avatar Feb 22 '22 04:02 jecfish