Skip to content

Conversation

kmurugulla
Copy link
Collaborator

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):

Fix #

Test URLs:

Copy link

aem-code-sync bot commented Sep 30, 2025

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

Copy link

aem-code-sync bot commented Sep 30, 2025

Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync aem-code-sync bot temporarily deployed to media-library September 30, 2025 21:21 Inactive
Copy link
Collaborator

@amol-anand amol-anand left a comment

Choose a reason for hiding this comment

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

Where does the media-library-full.iife.js get built from? from the DA project by any chance? Wondering if we can not have it minified unless it's ridiculously large and causing perf issues?

}

async function fetchSitemap(sitemapURL) {
const fetchUrl = `https://little-forest-58aa.david8603.workers.dev/?url=${encodeURIComponent(sitemapURL)}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we run this in our own POC CF space?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the cors proxy that is being used in image audit . The web component will take a cors proxy as property so that host systems can use their own. The web component code it self uses the cors proxy deployed into poc space by default. Since this will be part of labs i thought it is better to use the existing cors proxy. Please let me know if that is not the case

clearButton.style.display = display;
}

async function initializeMediaLibraryWithRetry(mediaLibrary, storageType) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

seems like we can combine this function with initializeMediaLibrary to be one function

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cleaned up and addressed


setupStorageManager(mediaLibrary, siteKey);

await new Promise((resolve) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a big fan of timeouts. Instead of a timeout, can we listen for a custom event to know when the media library has loaded and then based on that custom event we can do something when triggered?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed in the new code. relying on the component ready event

@kmurugulla
Copy link
Collaborator Author

Where does the media-library-full.iife.js get built from? from the DA project by any chance? Wondering if we can not have it minified unless it's ridiculously large and causing perf issues?

https://github.com/kmurugulla/media-library-wc is the repository for web component . Added the un minified version of the web component script to deps and ignoring it from jslint

@kmurugulla kmurugulla requested a review from amol-anand October 2, 2025 14:12
@amol-anand
Copy link
Collaborator

@kmurugulla thanks for the fixes. I'd say let's wait to merge this for now as discussed.

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