Skip to content

Improve autoplay for videos outside initial viewport #1590

@swissspidy

Description

@swissspidy

This is a follow-up to #1498 / #1183

autoplay takes precedence over preload. When we know that a video is not in the initial viewport, we could remove autoplay in favor of an IntersectionObserver-based implementation that only autoplays the video when actually visible.

Related to #1035 which involves IntersectionObserver to lazy-load background images.

Metadata

Metadata

Assignees

Labels

[Plugin] Image PrioritizerIssues for the Image Prioritizer plugin (dependent on Optimization Detective)[Plugin] Optimization DetectiveIssues for the Optimization Detective plugin[Type] EnhancementA suggestion for improvement of an existing feature

Projects

Status

Done 😃

Relationships

None yet

Development

No branches or pull requests

Issue actions