ExtJS 4.2 - Possible causes of a “Sychronous XMLHttpRequest” warning?

北城余情 提交于 2019-11-29 16:56:27

I had this error a while a ago. It is caused by Ext.Loader which loads the Ext classes dynamically.

I could solve it by adding the required classes in the Ext.require([...]) statement in the main js file of my application (i.e. app.js).

The docs for Ext.Loader explain when and why asynchronous and synchronous loading happens.

mindparse

Not sure about the main question, never seen that before with extjs 4 apps I have written.

For the question in loading the application faster you should be using sencha CMD to produce a concatenated and minified version of your source for using in a production environment.

Edit

I just came across this SO - "Synchronous XMLHttpRequest on the main thread is deprecated" using nodejs app.get or http-server

Talks about the same issue but with a different framework and comments suggests its an error on client side. Have you changed much lately with how your are fetching data from the server?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!