Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental……
2017-12-04 17:11
543 查看
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
F12 c onsole.log显示上面的警告;
警告引起原因,是因为在使用<script ……></script>这种方式引入的js 中使用了ajax .
而一般来讲,在这种情况下,async 应该设置为true 而不是flase.
Google 了好多解决,这算是个总结吧。
参考:https://stackoverflow.com/questions/24639335/javascript-console-log-causes-error-synchronous-xmlhttprequest-on-the-main-thr
文章来源:刘俊涛的博客
地址:http://www.cnblogs.com/lovebing
F12 c onsole.log显示上面的警告;
警告引起原因,是因为在使用<script ……></script>这种方式引入的js 中使用了ajax .
而一般来讲,在这种情况下,async 应该设置为true 而不是flase.
Google 了好多解决,这算是个总结吧。
参考:https://stackoverflow.com/questions/24639335/javascript-console-log-causes-error-synchronous-xmlhttprequest-on-the-main-thr
文章来源:刘俊涛的博客
地址:http://www.cnblogs.com/lovebing
相关文章推荐
- 提交页面出现提示:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effe
- Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to th
- 解决办法:Synchronous XMLHttpRequest on the main thread is deprecated because of its
- 关于谷歌..Synchronous XMLHttpRequest on the main thread is deprecated because of its...
- error:chrome控制台警告:Synchronous XMLHttpRequest on the main thread...
- 关于chrome控制台警告:Synchronous XMLHttpRequest on the main thread
- 未解决:Ext动态加载controller时出现Synchronous XMLHttpRequest on the main
- relying on packaging to define the extension of the main artifact has been deprecated and is schedul
- Assertion failed: Cancelling DisplayDialog because it was run from a thread that is not the main 。。
- His job is on the line because of his lack of concern for his duties
- “The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit” 的我之解決辦法
- The State of Visual Analytics Views on what visual analytics is and where it is going
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- IIS "Bad Request - Request Too Long. HTTP Error 400. The size of the request headers is too long."
- The application may be doing too much work on its main thread.问题可能的解决办法
- The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from
- 错误The resource identified by this request is only capable of generating(HTTP Status 406)
- The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this sy