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

后端 未结 2 1641
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-22 04:09

Good day, sorry for the seemingly broad question title.

I am building an ExtJS4 application using php and sql for the user data. Everything was going fine until one

相关标签:
2条回答
  • 2020-12-22 04:28

    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.

    0 讨论(0)
  • 2020-12-22 04:28

    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?

    0 讨论(0)
提交回复
热议问题