Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous XMLHttpRequest #26

Open
LC43 opened this issue Jun 9, 2015 · 2 comments
Open

Synchronous XMLHttpRequest #26

LC43 opened this issue Jun 9, 2015 · 2 comments

Comments

@LC43
Copy link

LC43 commented Jun 9, 2015

Hi! i'm getting this error:

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

from

req.open("GET", uri, FALSE);

i know the line above that one says:

// sadly, this has to be blocking to allow for a graceful degrading API

but is there a solution to fix this warning?

@smartm0use
Copy link

smartm0use commented Feb 15, 2019

I have tried to change that call to req.open("GET", uri, TRUE); but I get the following error (instead of warning): Unable to load localization data: <myLocalizationFile.json>

@eligrey
Copy link
Owner

eligrey commented Jun 7, 2021

I may make a different l10n library in the future that has an async API, which will help resolve this

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

No branches or pull requests

3 participants