Rudy

Results 23 comments of Rudy

@zhixuanziben 大兄弟厉害阿,自学进宇宙条牛逼了。大佬有空分享自己的经历呀

@XiaochengYe 多实践,用久了自然就熟了

@XiaochengYe 以前是看这个的 https://www.liaoxuefeng.com/wiki/896043488029600

如果只是github的使用的话,就看看官方文档https://docs.github.com/cn/github

```js class MutiRequest { constructor(urls, max) { this.urls = urls this.max = max this.pending = [] this.excuting = [] this.result = [] this.init(urls) } init(urls) { for (let i =...

有点像链表 ```js var entry = { 'a.b.c.dd': 'abcdd', 'a.d.xx': 'adxx', 'a.e': 'ae' } const search = (keys, res, value) => { let cur = res for (let i = 0;...

```js const add = (a, b) => { if (a === 0) return b if (b === 0) return a return add(a ^ b, (a & b) { return add(n

### 1. 首屏时间 #### 1.1 参考阿里ARMS 使用ARMS的计算方法,将可见dom元素数量增长最快的时间点作为首屏时间。 - [FMP技术方案](https://zhuanlan.zhihu.com/p/44933789?spm=a2c4g.11186623.2.15.2a995c7cUZ0pZh) - [计算方式](https://github.com/iyjhabc/first-meaningful-paint/blob/master/src/index.js) #### 1.2 参考腾讯Aegis 利用 MutationObserver 接口,监听 document 对象的节点变化。 检查这些变化的节点是否显示在首屏中,若这些节点在首屏中,那当前的时间点即为首屏渲染时间。但是还有首屏内图片的加载时间需要考虑,遍历 performance.getEntries() 拿到的所有图片实体对象,根据图片的初始加载时间和加载完成时间去更新首屏渲染时间。 这种方式相比第一种计算性能小一些。 - [计算方式](https://github.com/Cainankun/first-screen-rendering-time/blob/master/index.js) ### 2. 白屏时间 计算方式: -...