Skip to main content

Customizing Indicator Tracking

The agent supports customizing performance indicators, including fully loaded, FCP, LCP, and TTI. You can use the browser's native interface or the agent's interface.

Browser Interface performance.mark Method

Use the browser interface performance.mark(...), and add the ty_ prefix to indicate a Tingyun indicator. The time point when the interface is called will be recorded by the agent as the indicator trigger time.

Setting white screen:

performance.mark('ty_fp');

Setting first screen:

performance.mark('ty_fs');

Setting interactive:

performance.mark('ty_dr');

Setting fully loaded time:

performance.mark('ty_dr');