files/en-us/web/api/performancescripttiming/index.md
{{SeeCompatTable}}{{APIRef("Performance API")}}
The PerformanceScriptTiming interface is specified in the Long Animation Frames API and provides metrics on individual scripts that contribute to long animation frames (LoAFs).
Long animation frames (LoAFs) are rendering updates that are delayed beyond 50ms. LoAFs can result in slow user interface (UI) updates, making controls appear unresponsive and causing janky (non-smooth) animated effects and scrolling. This often leads to user frustration.
The PerformanceScriptTiming interface (instances of which are accessed via the {{domxref("PerformanceLongAnimationFrameTiming.scripts")}} property) provides the following granular set of information on individual scripts that contribute to LoAFs, allowing developers to narrow down their root causes:
PerformanceScriptTiming inherits from {{domxref("PerformanceEntry")}}.
{{InheritanceDiagram}}
This interface extends the following {{domxref("PerformanceEntry")}} properties for long animation frame performance entries:
"script"."script".This interface also supports the following properties:
window of the container (i.e., either the top-level document or an {{htmlelement("iframe")}}) in which the LoAF-causing script was executed.PerformanceScriptTiming object.See Long animation frame timing for examples related to the Long Animation Frames API.
{{Specifications}}
{{Compat}}