X 归档 2020-02-24
Some sources of random data are better than others. Eg:
🥉 Math.random()
🥈 crypto.getRandomValues(array)
🥇 The compass on any Android device
🥉 Math.random()
🥈 crypto.getRandomValues(array)
🥇 The compass on any Android device
有些随机数据来源比其他的更靠谱。比如:
🥉 Math.random()
🥈 crypto.getRandomValues(array)
🥇 任何 Android 设备上的指南针
🥉 Math.random()
🥈 crypto.getRandomValues(array)
🥇 任何 Android 设备上的指南针
JavaScript loading priorities in Chrome: http://bit.ly/loading-priorities ~ how do <script>, <script defer>, <link rel=preload> + <script async> & friends load then execute? Useful table.
Chrome 中 JavaScript 的加载优先级:http://bit.ly/loading-priorities ~ <script>、<script defer>、<link rel=preload> + <script async> 之类是怎么先加载再执行的?很实用的一张表。
Another useful tip for memory debugging (not mentioned in the article) is `queryObjects(SomeConstructor)`, which can be used from the DevTools Console: https://developers.google.com/web/updates/2017/08/devtools-release-notes#query-objects
另一个好用的内存调试技巧(文章里没提到)是 `queryObjects(SomeConstructor)`,可以在 DevTools 控制台里用:https://developers.google.com/web/updates/2017/08/devtools-release-notes#query-objects




