Skip to content

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

Open
rollbackpt wants to merge 2 commits intowikimedia:masterfrom
rollbackpt:master
Open

Added option to load language files in a synchronous way#110
rollbackpt wants to merge 2 commits intowikimedia:masterfrom
rollbackpt:master

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.

3 participants