This is for the record 前端面试的话术集锦第八篇博文——高频考点(JS性能优化 & 性能优化琐碎事)
and I will keep updating this blog post. ❗❗❗
1. Look at JS performance optimization from V8
Note: This knowledge point belongs to the field of performance optimization.
1.1 Test Performance Tools
Chrome
A large and comprehensive performance testing tool has been provided Audits
.
After we click Audits
, you can see the following interface:
In this interface, we can select the function we want to test and click it Run audits
. The tool will automatically run to help us test the problem and give a complete report:
The picture above is a report given after testing the performance of the gold mining home page. You can see that 性能、 体验、SEO
scores are given for each in the report, and each indicator has a detailed evaluation.
After the evaluation &