Skip to content

Option to make player as main content (eager/prioritized loading) #9171

@kontrollanten

Description

@kontrollanten

Description

Currently the poster image is marked as loading="lazy", which isn't desirable all the times. In cases where the video is the main content of the page it should be marked as loading="eager" and fetchpriority="high" to make a good user experience and SEO.

#8038

Reduced test case

https://legacy.videojs.org/

Steps to reproduce

  1. Go to https://legacy.videojs.org/
  2. Check the loading property of the posters img element.

Errors

No response

What version of Video.js are you using?

8.23.4

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

Brave 1.89.137 Chromium: 147.0.7727.102

What OS(es) and version(s) does this occur with?

Ubuntu 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: triageThis issue needs to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions