Synchronous AJAX call from AEM when using internationalization javascript libraries

Issue

On sites that leverage the Granite i18n javascript library (for example: Granite.I18n.get("");), the error below is observed in the javascript console of the browser:

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.

Cause

This functionality is by design.

Resolution

The synchronous ajax call is by design. Adobe Engineering team plans to change this functionality in the future by loading the file via including a script tag. However, that product enhancement won't be included in AEM until a future version.

 Adobe

Obțineți ajutor mai rapid și mai ușor

Utilizator nou?

Adobe MAX 2024

Adobe MAX
Conferința despre creativitate

14 – 16 octombrie, Miami Beach și online

Adobe MAX

Conferința despre creativitate

14 – 16 octombrie, Miami Beach și online

Adobe MAX 2024

Adobe MAX
Conferința despre creativitate

14 – 16 octombrie, Miami Beach și online

Adobe MAX

Conferința despre creativitate

14 – 16 octombrie, Miami Beach și online