adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
730 stars 736 forks source link

Synchronous XHR request in imageDynamicMedia #2579

Open AmirMohammadiTMobile opened 11 months ago

AmirMohammadiTMobile commented 11 months ago

https://github.com/adobe/aem-core-wcm-components/blob/905f0d4e4e4d4e2b1486fb442ac4cbfd69bc72f9/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/site/js/imageDynamicMedia.js#L40

Is it intentional that XMLHttpRequest request be done as Synchronous versus Asynchronous in imageDynamicMedia.js for v3 component?

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests

Per MDN: Synchronous XHR is now deprecated and should be avoided in favor of asynchronous requests.