preload的作用是?

它是一种声明式的获取(fetch)指令。

用人话来讲,它是一种告诉浏览器开始获取一项确定资源的方式,因为我们是作者(或者服务器管理员,或者聪明的服务器开发),我们是知道浏览器将很快需要那一项资源的。

可以用来优化动态加载的资源。

image.png
image.png

提前下载,后续加载。如果希望某些资源早点加载但是不运行,可以使用 preload。
适合当页必须加载的资源。且preload加载的 style 不会阻塞渲染

Have opinions, but avoid expressing them in ways that cause other people to believe you won’t change them.

Expressing our beliefs and opinions is important, and we should all have the room to do that. However, there’s a fine line between sharing an opinion and sounding as though you’re sharing an immovable fact. In a team, it’s incredibly healthy for everyone to feel like they can challenge an opinion and potentially change it, or their own.

A great piece of advice I received that helps with this is to express your beliefs along with a percentage of how sure you are. “I’m 95% sure using Visual Basic is a bad idea.” Even when it’s 95%, it’s both an opening for someone to question the belief and create a conversation, and an opportunity for you to simply revise your sureness if new information is learned.

toJSON 的作用

按照 coder 想要的方式序列化(JSON.stringify)对象

307 重定向无法抓包

https://xwenliang.cn/p/5be6e275469f887b71000001

image.png
image.png

浏览器通过检查缓存之前访问过 https,就会直接用 https 来访问。
浏览器会显示为 307,不是实际的请求。

计算字符串大小

http://www.alloyteam.com/2013/12/js-calculate-the-number-of-bytes-occupied-by-a-string/

UTF-8 和 UTF-16 计算字符串的大小

单位换算

一个中文字符是 2 Bytes,一个其他字符串是 1 Bytes。

image.png
image.png

Roam Research

特别的笔记软件
https://www.zhihu.com/question/384453977
https://www.bilibili.com/s/video/BV1jZ4y1T7ex

.*? 和 .*的区别

https://blog.csdn.net/foreverling_ling/article/details/53102372

什么是零信任安全

https://zhuanlan.zhihu.com/p/102086374