Skip to content

Set 'eager' loading for videos with priority performance#1820

Open
KMchaudhary wants to merge 1 commit intodevelopfrom
hotfix/loading-eager
Open

Set 'eager' loading for videos with priority performance#1820
KMchaudhary wants to merge 1 commit intodevelopfrom
hotfix/loading-eager

Conversation

@KMchaudhary
Copy link
Copy Markdown
Collaborator

This pull request introduces a small update to the video performance settings in the rtgodam_get_video_performance_settings function. The change ensures that when the mode is set to 'priority', the video poster image will now load eagerly in addition to having a high fetch priority.

  • Added the 'loading' => 'eager' attribute to the poster_attributes array for priority mode in rtgodam_get_video_performance_settings in inc/helpers/custom-functions.php

Copilot AI review requested due to automatic review settings April 24, 2026 12:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates GoDAM’s video performance configuration so that when a video is in priority performance mode, the poster <img> is explicitly configured to load eagerly (in addition to having high fetch priority), aligning poster loading behavior with the intent of “priority” mode.

Changes:

  • Add loading => eager to poster_attributes when performance mode is priority in rtgodam_get_video_performance_settings().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KMchaudhary KMchaudhary requested a review from subodhr258 April 24, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants