diff --git a/packages/browser-utils/src/metrics/instrument.ts b/packages/browser-utils/src/metrics/instrument.ts index ad390191266f..acd3717e8bd4 100644 --- a/packages/browser-utils/src/metrics/instrument.ts +++ b/packages/browser-utils/src/metrics/instrument.ts @@ -202,12 +202,17 @@ function triggerHandlers(type: InstrumentHandlerType, data: unknown): void { } function instrumentCls(): StopListening { - return onCLS(metric => { - triggerHandlers('cls', { - metric, - }); - _previousCls = metric; - }); + return onCLS( + metric => { + triggerHandlers('cls', { + metric, + }); + _previousCls = metric; + }, + // We want the callback to be called whenever the CLS value updates. + // By default, the callback is only called when the tab goes to the background. + { reportAllChanges: true }, + ); } function instrumentFid(): void {