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

最新文章

  1. bootstrap 学习
  2. Java代码性能优化总结
  3. HDU 4419 Colourful Rectangle(线段树+扫描线)
  4. [设计模式] 4 原型模式 prototype
  5. jquery easyui将form表单元素的值序列化成对象
  6. nginx+memcached+ftp上传图片+iis
  7. 笔试题&amp;amp;面试题:输入一个维度,逆时针打印出一个指定矩阵
  8. 【备忘】MVC5 布署在windows2008 IIS7.5 出现的问题解决
  9. Java中的String,StringBuilder,StringBuffer三者的区别
  10. Centos7+nginx+keepalived集群及双主架构案例
  11. 使用RStudio调试(debug)基础学习(二)和fGarch包中的garchFit函数估计GARCH模型的原理和源码
  12. MyBatis简单使用和入门理解
  13. cf827D Best Edge Weight (kruskal+倍增lca+并查集)
  14. ios开发常用封装的实用方法
  15. Hadoop特点
  16. css3 2D转换(2D Transform) 动画(Animation)
  17. 10分钟轻松设置出 A+ 评分的 HTTP/2 网站
  18. 3D物体识别的如果检验
  19. MySQL Error 1215: Cannot add foreign key constraint
  20. IntelliJ IDEA编码格式设置

热门文章

  1. iptables + Denyhost抵御暴力破解
  2. 【bzoj2161】布娃娃 权值线段树
  3. js作用域的理解
  4. [NOI2009] 植物大战僵尸 [网络流]
  5. webpack命令
  6. apache 列目录修复
  7. git 生成patch和打patch
  8. svg图片做图标字体
  9. js动态添加select菜单 联动菜单
  10. PE笔记之PE文件总览图