Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental……
2024-09-05 00:21:29
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 了好多解决,这算是个总结吧。
文章来源:刘俊涛的博客
地址:http://www.cnblogs.com/lovebing
最新文章
- bootstrap 学习
- Java代码性能优化总结
- HDU 4419 Colourful Rectangle(线段树+扫描线)
- [设计模式] 4 原型模式 prototype
- jquery easyui将form表单元素的值序列化成对象
- nginx+memcached+ftp上传图片+iis
- 笔试题&;amp;面试题:输入一个维度,逆时针打印出一个指定矩阵
- 【备忘】MVC5 布署在windows2008 IIS7.5 出现的问题解决
- Java中的String,StringBuilder,StringBuffer三者的区别
- Centos7+nginx+keepalived集群及双主架构案例
- 使用RStudio调试(debug)基础学习(二)和fGarch包中的garchFit函数估计GARCH模型的原理和源码
- MyBatis简单使用和入门理解
- cf827D Best Edge Weight (kruskal+倍增lca+并查集)
- ios开发常用封装的实用方法
- Hadoop特点
- css3 2D转换(2D Transform) 动画(Animation)
- 10分钟轻松设置出 A+ 评分的 HTTP/2 网站
- 3D物体识别的如果检验
- MySQL Error 1215: Cannot add foreign key constraint
- IntelliJ IDEA编码格式设置