Skip to content

[MWPW-189469] Eager loading of media in upload marquee#900

Draft
vipu0303 wants to merge 11 commits intostagefrom
vg-db4
Draft

[MWPW-189469] Eager loading of media in upload marquee#900
vipu0303 wants to merge 11 commits intostagefrom
vg-db4

Conversation

@vipu0303
Copy link
Collaborator

@vipu0303 vipu0303 commented Mar 6, 2026

@aem-code-sync
Copy link

aem-code-sync bot commented Mar 6, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync
Copy link

aem-code-sync bot commented Mar 6, 2026

@Ruchika4
Copy link
Contributor

Ruchika4 commented Mar 6, 2026

This looks good @vipu0303 for foreground image. Thanks for getting this done.

} else eagerLoad(firstBlock.querySelector(':scope div:last-child > div img'));
break;
}
case firstBlock?.classList.contains('upload-marquee'): {
Copy link
Collaborator

Choose a reason for hiding this comment

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

As discussed, could you please check if something like

function createResponsiveImage(imageUrl, altText) {
and
function createResponsiveVideo(videoUrl, imageUrl, altText) {
could be explored?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PR: #905

Copy link
Collaborator

@nkthakur48 nkthakur48 left a comment

Choose a reason for hiding this comment

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

Please ensure to check your changes in a slow n/w connection. There shouldn’t be any flicker

@vipu0303 vipu0303 changed the base branch from vg-db2 to stage March 6, 2026 07:44
@asonnalagi
Copy link

Looks fine.
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants