异步请求是否会影响UI线程性能

时间:2016-12-22 14:56:37

标签: reactjs asynchronous google-chrome-devtools electron axios

从Electron App记录的附加时间轴中,异步请求阻止/影响UI线程是否可能?对此有什么解决方案吗?

enter image description here

问题已更新。

1 个答案:

答案 0 :(得分:0)

使用 MONTH | WO | MRB | Pass Rate | GOAL January | 25 | 0 | 100 | 98 February | 66 | 0 | 100 | 98 March | 35 | 0 | 100 | 98 April | 22 | 0 | 100 | 98 May | 19 | 0 | 100 | 98 June | 47 | 0 | 100 | 98 July | 52 | 0 | 100 | 98 August | 55 | 0 | 100 | 98 September | 60 | 1 | 98.3 | 98 October | 39 | 0 | 100 | 98 November | 18 | 0 | 100 | 98 December | 30 | 2 | 93.3 | 98 代替defer。如果首先下载async脚本,它们仍然可以阻止呈现,因为它们将在非异步脚本之前执行。您可以在此处阅读更深入的考试内容:http://calendar.perfplanet.com/2016/prefer-defer-over-async/