试图调查页面加载性能错误:什么是 "Scripting" 和 "Idle"?

Trying to investigate page load performance bug: What is "Scripting" and "Idle"?

我有一个基于 HTML/CSS/JS/PHP/MySQL 构建的网站,我正在尝试确定是什么消耗了加载我的页面所涉及的大部分操作。 Google Chrome的时间线显示

我想知道 "Scripting" 和 "Idle" 是什么?话虽如此,什么是"Painting"?

脚本由文档中的脚本事件定义:

https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-performance/performance-reference#scripting-events

也描述了绘画事件。

https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-performance/performance-reference#painting-events

空闲似乎是没有花在处理任何事件上的时间。