![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具
木_林_森
学无止境,一直在路上
展开
-
前端如何查看页面性能
现在讲的最多的就是前端性能优化,手段五花八门,但是首先 怎么量化优化的效果,首屏从10s 优化的1s , 怎么查看 ?前端性能最简单的量化指标 ,白屏时间,首屏时间。白屏时间 网上互相参考的,都是从html head 处打点 减去performance.timing.navigationStart(上一个页面路有关闭,新路有开启开始时间),白屏时间 = firstPaint - performance.timing.navigationStart但是当前的前端系统,大多是基于 vue /r...原创 2021-11-27 22:08:50 · 3413 阅读 · 0 评论 -
自动修复 import 排序 ( autofix sort import/export )
自动修复 import 排序import/export 按一定的规则排序,既让代码美观,也让开发者更好的维护代码,目前自动修复import/export主要有以下两种:基于eslint 规则的 eslint-plugin-simple-import-sort 自动导入排序和校验;基于 prettier 的 plugin @trivago/prettier-plugin-sort-imports 自动导入排序;eslint-plugin-simple-import-sort yarn原创 2021-08-26 11:28:11 · 7981 阅读 · 2 评论 -
mac 命令行 代理上网
export https_proxy=http://127.0.0.1:9999 http_proxy=http://127.0.0.1:9999 all_proxy=socks5://127.0.0.1:9999一般安装一些工具homebrew, 一个终端要先执行一次原创 2021-08-20 15:26:25 · 412 阅读 · 0 评论