详情s:
jquery-1.11.1.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
问题:
- ajax请求同步
- 单线程或同步请求阻塞卡死、请求超时出错
解决:
- ajax改异步;
- 用于局部刷新的、请求后台的脚本引用提前写入前台(head预传,src这里写,例:<script type="text/javascript" src="../js/common/jquery-1.11.1.min.js"></script>);
- 引用的外部脚本写入dom(不直接引用;html里写<script type="text/javascript"></script>)