摘要: 页面渲染性能的优化衡量指标window.performance是w3c提供的用来测量网页和Web应用程序的性能api。其中performance timing提供了延时相关的性能信息,可以高精度测量网站性能 。 白屏时间=页面开始展示的时间点(PerformanceTiming.domLoading 阅读全文
posted @ 2022-06-08 10:24 xiaoxiao95 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 在 vue cli2 项目中使用Vuex时,ie浏览器会出现“Vuex requires a Promise polyfill in this browser”的错误提示,这是因为使用了ES6 Promise,而IE浏览器不支持,解决方案如下: 1. 安装babel-polyfill 执行以下命令, 阅读全文
posted @ 2022-06-08 09:48 xiaoxiao95 阅读(5786) 评论(0) 推荐(0) 编辑