Home > widget-integration > PerformanceTrackerOptions > trackRendering

PerformanceTrackerOptions.trackRendering property

Automatically track rendering performance (FPS).

Opt-in only. FPS tracking drives a self-rescheduling requestAnimationFrame loop, which forces the browser to produce a frame every ~16ms for as long as the tracker is active. On a storefront that keeps the main thread awake and makes auditing tools (Lighthouse/PageSpeed) attribute every frame's Layerize/PrePaint/Commit/IntersectionObserver work to the script that requested the frame. Enable it in debug sessions only.

false

Signature:

trackRendering?: boolean;