Longtask

A long task event corresponds to instances where the browser is unable to be responsive to user interaction (a situation typically caused by heavy data processing on the client side or bugs). It is generated when the a task blocks the main browser thread for a duration greater than 50 milliseconds. A longtask is a child event to an action event. It also has the context of the view that is currently active.

The following properties may be used to analyze and profile longtasks in a session:-

Property

Description

Example

Usage

Property

Description

Example

Usage

duration

How long the task took

100ms

Analytics to get the slowest longtasks, or views and actions with the slowest longtasks.

is_frozen_frame

Did the view freeze as a result of this longtask?

true/false

Analytics to get views that with the most frozen frames