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

Added option to load language files in a synchronous way #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rollbackpt
Copy link

No description provided.

$.ajax( {
url: url,
dataType: 'json',
async: !sync
Copy link
Member

Choose a reason for hiding this comment

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

synchronous loading of any resource is very bad from performanace and user experience perspective. If used with a complex application, the implications are very random and unexpected.
So, if there is a usecase that is not really supported by this library, we can discuss alternate approaches but this approach is problematic

@ricordisamoa
Copy link
Contributor

https://xhr.spec.whatwg.org/#synchronous-flag

Synchronous XMLHttpRequest outside of workers is in the process of being removed from the web platform as it has detrimental effects to the end user's experience.

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

Successfully merging this pull request may close these issues.

None yet

3 participants